diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-05 09:32:22 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-05 20:52:53 +0100 |
commit | f630373b929bc62bf4d66d60c532f7832e5fbe67 (patch) | |
tree | b75eb1b0dd872d60b7f973889ca40883a620fe35 /django/apps | |
parent | f5f761716731ceedaf165a068e6f88164cd87e79 (diff) | |
download | django-f630373b929bc62bf4d66d60c532f7832e5fbe67.tar.gz |
Fixed #21711 -- Enforced unicity of model names.
Diffstat (limited to 'django/apps')
-rw-r--r-- | django/apps/registry.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py index db75f999c5..f88fb73dd6 100644 --- a/django/apps/registry.py +++ b/django/apps/registry.py @@ -185,7 +185,6 @@ class Apps(object): # call get_app_config(). model_name = model._meta.model_name app_models = self.all_models[app_label] - # Defensive check for extra safety. if model_name in app_models: raise RuntimeError( "Conflicting '%s' models in application '%s': %s and %s." % |