Skip to content

Commit 9b91b04

Browse files
authored
typo
1 parent e0498ee commit 9b91b04

File tree

1 file changed

+2
-2
lines changed
  • model-inheritance(django_abstract_base_class)

1 file changed

+2
-2
lines changed

model-inheritance(django_abstract_base_class)/after.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# In a lot of cases it is fine to leave them this way.
77
# However, if we use these same fields yet again it would be a good idea to use an abstract base class.
88
#
9-
# We now have a ConactInfo abstract base class because we added abstract = True to its Meta.
9+
# We now have a ContactInfo abstract base class because we added abstract = True to its Meta.
1010
# This will tell django and the migration system this isn't a model we can use to store data with.
1111
#
1212
# However, we can inherit from it so that each model that we subclass with it has the fields, methods, and properties of the abstract model.
@@ -34,4 +34,4 @@ class Customer(ContactInfo):
3434

3535
class Staff(ContactInfo):
3636
bio = models.TextField()
37-
position = models.CharField(max_length=20)
37+
position = models.CharField(max_length=20)

0 commit comments

Comments
 (0)