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

Comment (by jakub):

 > I did not change the str representation, since this change is not
 necessarily useful in the majority of use cases, that do not have
 conflicting model names. In this case maybe a warning would be useful
 suggesting the user to set a meaningful verbose_name.


 You can also  end up with conflicting names (ie. indistinguishable items
 in `ContenType` combo boxes) by installing third-party apps that use the
 same model class names/`verbose_name`'s.

 The names are app-local and therefore should not be used in a global
 context without indicating where they come from.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16027#comment:16>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to