Skip to content

Commit

Permalink
Fix typo in AdminSite.register method
Browse files Browse the repository at this point in the history
  • Loading branch information
bhch committed Mar 11, 2021
1 parent 9f6dda1 commit d936f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_candy/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_registry_key(cls, model):
return '.'.join([model._meta.app_label, model.__name__.lower()])

def register(self, model, admin_class=None):
key = self.get_registry_key(mdoel)
key = self.get_registry_key(model)

if key in self._registry:
return
Expand Down

0 comments on commit d936f60

Please sign in to comment.