1. Matthew Schinckel
  2. django-rest-api

Commits

Matthew Schinckel  committed f59d8fd

Don't complain or try to re-register.

  • Participants
  • Parent commits a5b0fb1
  • Branches default

Comments (0)

Files changed (1)

File rest_api/sites.py

View file
         
         for model in model_or_iterable:
             if model in self._registry:
-                raise AlreadyRegistered('The model %s is already registered' % model.__name__)
+                pass
+                # raise AlreadyRegistered('The model %s is already registered' % model.__name__)
             
             if options:
                 options['__module__'] = __name__