#23615: Naming a model Check causes Django's check framework to fail with an
acception
--------------------------------------+------------------------------------
Reporter: bramd | Owner: nobody
Type: Bug | Status: new
Component: Core (System checks) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by bmispelon):
* stage: Unreviewed => Accepted
Comment:
I've managed to reproduce with these models:
{{{#!python
class Foo(models.Model):
pass
class Bar(models.Model):
check = models.ForeignKey('Foo')
}}}
It turns out that the name of the model is not the issue but the name of
the field is.
Note however that using `check = models.IntegerField()` doesn't trigger
the error.
--
Ticket URL: <https://code.djangoproject.com/ticket/23615#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.406609167b92b1cbd811036629e4551f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.