#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
-------------------------------------+-------------------------------------
Comment (by Marcelo Galigniana):
Thank you for the explanation Maxim! And sorry again!
Replying to [comment:4 Maxim Danilov]:
> 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:5>
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.37b98c86a3d9ea9397e242dd4b7a25ee%40djangoproject.com.