#16027: Include app_label in ContentType.__str__()
-------------------------------------+-------------------------------------
     Reporter:  Jakub Roztočil       |                    Owner:
         Type:                       |  djangsters
  Cleanup/optimization               |                   Status:  assigned
    Component:                       |                  Version:  master
  contrib.contenttypes               |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Greg Schmit):

 So this seems like an easy change and I think we should follow Permissions
 and do {{{app_label :: model_verbose_name}}} rather than the suggested
 {{{model_verbose_name (app_label)}}} for sorting purposes. I think the
 optgroup thing would be a neat idea for a 3rd party package, but I think
 right now putting it into the Django core isn't necessary, and maybe
 another ticket could be opened for that as a feature request. Adding the
 {{{app_label}}} to the {{{__str__}}} representation I think is the
 necessary bit.

 I mentioned in another ticket that this should be fairly easy but it did
 break some tests. Would anyone have time to help me get a test-passing
 version on Django on my local machine (macbook pro, but I have ubuntu VM
 and could get another linux distro)? Right now I get a lot of errors when
 trying to run tests (ref https://code.djangoproject.com/ticket/30051). If
 someone would be willing to give me some pointers (like maybe I'm supposed
 to download the latest release rather than clone master?), that would be
 great.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16027#comment:21>
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/063.981a35e2194df23129adcf307c30fd42%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to