#33028: ModelAdmin.init has self.opts, but it still nowerewhere else in
django.admin.contrib.options not used
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Maxim
Type: | Danilov
Cleanup/optimization | Status: assigned
Component: contrib.admin | Version: 3.2
Severity: Normal | Resolution:
Keywords: admin, modeladmin | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Maxim Danilov):
* owner: Marcelo Galigniana => Maxim Danilov
Comment:
Hi Marcelo.
If i use ModelAdmin.opts, i use public Attribute from instance and i can
override it for my needs.
i think it is right.
If in ModelAdmin placed self.model._meta, at first it is wrong to use
privat property from other object, at second - it is possible, but more
difficult to override it.
That's why i see ModelAdmin.opts is a right way for Django.
--
Ticket URL: <https://code.djangoproject.com/ticket/33028#comment:4>
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/067.22053fb83b1bddcaf651283ee5ceb139%40djangoproject.com.