diff --git a/docs/topics/db/examples/one_to_one.txt b/docs/topics/db/examples/one_to_one.txt index 4c8e0ecfcc..09634c84c7 100644 --- a/docs/topics/db/examples/one_to_one.txt +++ b/docs/topics/db/examples/one_to_one.txt @@ -10,7 +10,7 @@ In this example, a ``Place`` optionally can be a ``Restaurant``: .. code-block:: python - from django.db import models, transaction, IntegrityError + from django.db import models class Place(models.Model): name = models.CharField(max_length=50)