Skip to content

Commit

Permalink
Fixed django#373 - Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
csirmazbendeguz committed Aug 21, 2024
1 parent 2b873b6 commit 5bd1cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def register(self, model_or_iterable, admin_class=None, **options):
if model._meta.is_composite_pk():
raise ImproperlyConfigured(
"The model %s has a composite primary key, so it cannot be "
"registered with admin" % model.__name__
"registered with admin." % model.__name__
)

if self.is_registered(model):
Expand Down

0 comments on commit 5bd1cc6

Please sign in to comment.