Commits

Matthew Schinckel committed ae84a6f

Use more admin-like method of unregister.

Comments (0)

Files changed (1)

rest_api/sites.py

         for model in model_or_iterable:
             if model not in self._registry:
                 raise NotRegistered('The model %s is not registered' % model.__name__)
-            self._registry.pop(model)
+            del self._registry[model]
     
     def has_permission(self, request):
         """