#33028: ModelAdmin.init has self.opts, but it still nowerewhere else in
django.admin.contrib.options not used
-------------------------------------+-------------------------------------
               Reporter:  Maxim      |          Owner:  nobody
  Danilov                            |
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:             |        Version:  3.2
  contrib.admin                      |
               Severity:  Normal     |       Keywords:  admin, modeladmin
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 At thirst:
 {{{
 ModelAdmin.__init__():
         self.model = model
         self.opts = model._meta
 }}}

 after that i see it more than 40 times in django.admin.contrib.options.py
 ...
 {{{
  def __str__(self):
         return "%s.%s" % (self.model._meta.app_label,
 self.__class__.__name__)  # r.n. 593
 }}}
 ...
 {{{
 info = self.model._meta.app_label, self.model._meta.model_name  # r.n. 620
 }}}
 It's easy to change with find/replace

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33028>
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/052.c7bcba4c713fed28dee4df62a206d907%40djangoproject.com.

Reply via email to