#24693: Add model Options.label property
-------------------------------------+-------------------------------------
               Reporter:  timgraham  |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:  Database   |        Version:  master
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:  Accepted   |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 There are many places in Django that construct a dotted path like this:
 `'%s.%s' % (model._meta.app_label, model._meta.object_name)`

 It would by DRYer to add a property to the Options class in
 django/db/models/options.py that returned the dotted path. I'm proposing
 the name "label".

--
Ticket URL: <https://code.djangoproject.com/ticket/24693>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.34e5c68f96b86b16c3541505e710da24%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to