Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #1578 -- fixed a corner-case where we still wanting core=True a…

…ttributes

on a model that was not being edited inline.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a778c9de4773d7a9d53b86b3aa4bc54bfbc40b8d 1 parent 4a30eff
@malcolmt malcolmt authored
View
2  django/core/management.py
@@ -962,6 +962,8 @@ def get_validation_errors(outfile, app=None):
# Check core=True, if needed.
for related in opts.get_followed_related_objects():
+ if not related.edit_inline:
+ continue
try:
for f in related.opts.fields:
if f.core:
View
0  tests/regressiontests/many_to_one_regress/__init__.py
No changes.
View
13 tests/regressiontests/many_to_one_regress/models.py
@@ -0,0 +1,13 @@
+from django.db import models
+
+class First(models.Model):
+ second = models.IntegerField()
+
+class Second(models.Model):
+ first = models.ForeignKey(First, related_name = 'the_first')
+
+# If ticket #1578 ever slips back in, these models will not be able to be
+# created (the field names being lower-cased versions of their opposite
+# classes is important here).
+
+API_TESTS = ""
Please sign in to comment.
Something went wrong with that request. Please try again.