#30798: models.E015 is raised when Meta.ordering contains "pk" of a related field. -------------------------------------+------------------------------------- Reporter: felixxm | Owner: nobody Type: Bug | Status: new Component: Database | Version: 3.0 layer (models, ORM) | Severity: Release | Keywords: blocker | Triage Stage: Accepted | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- models.E015 is raised when Meta.ordering contains `__pk` of a related field, e.g.:
{{{ test_app.SomeModel: (models.E015) 'ordering' refers to the nonexistent field, related field, or lookup 'option__pk'. }}} Regression in 440505cb2cadbe1a5b9fba246bcde6c04f51d07e. -- Ticket URL: <https://code.djangoproject.com/ticket/30798> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.00fcd5f2e87bc68fe8c042d21c494393%40djangoproject.com.