#33273: queryset.update SQL does not receive fields from base model of
inheriting
model.
-------------------------------------+-------------------------------------
Reporter: James Miller | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by James Miller):
Ok, thanks, I found the problem. In the inheriting app's model class
Meta: I had an 'ordering' field, that referenced the base class
'date_created' field. This apparently causes problems for the admin app,
although it works fine in the view/template etc...
edit... however, only when I removed the ordering field in the Meta class
completely from both inheriting class and base class did it work.
Eventually I reinstalled django using the latest version, 3.2.9, and
everything worked fine. I forced a reinstall --no-cache-dir pip of the
version I had before, django-3.2.0 and it failed again.
It seems that the ordering clause doesn't work with the django-3.2.0, so I
reinstalled using the latest django and it is now working fine. However,
I made a sample app, and that works fine with the ordering clause and
django-3.2, so I am not sure what might be wrong in my base code, but it
works with django-3.2.9.
my sample app:
https://github.com/millerthegorilla/django_sample_app
my main app:
https://github.com/millerthegorilla/django_artisan
--
Ticket URL: <https://code.djangoproject.com/ticket/33273#comment:6>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/074.9acf86409eb869a3a08afa74a7733869%40djangoproject.com.