Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #22922: Better error message for InvalidBasesError.

  • Loading branch information...
commit b02abd688a60e2dedf607e34d2cc97aca8d1c2b5 1 parent 008bff9
@andrewgodwin andrewgodwin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/migrations/state.py
View
2  django/db/migrations/state.py
@@ -68,7 +68,7 @@ def render(self, include_real=None, ignore_swappable=False, skip_cache=False):
except InvalidBasesError:
new_unrendered_models.append(model)
if len(new_unrendered_models) == len(unrendered_models):
- raise InvalidBasesError("Cannot resolve bases for %r" % new_unrendered_models)
+ raise InvalidBasesError("Cannot resolve bases for %r\nThis can happen if you are inheriting models from an app with migrations (e.g. contrib.auth)\n in an app with no migrations; see https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies for more" % new_unrendered_models)
unrendered_models = new_unrendered_models
# make sure apps has no dangling references
if self.apps._pending_lookups:
Please sign in to comment.
Something went wrong with that request. Please try again.