Changes between Initial Version and Version 1 of Ticket #24781


Ignore:
Timestamp:
May 11, 2015, 9:35:30 AM (9 years ago)
Author:
Baptiste Mispelon
Comment:

(the doc is here: https://docs.djangoproject.com/en/dev/ref/applications/)

Interestingly, doing print(apps.get_app_config('admin').verbose_name) still gives a useless repr on python2 under 1.7. On master or on Python 3, you get the expected behavior ("admin" is printed, or a translation in your active language).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24781

    • Property Component UncategorizedDocumentation
    • Property Triage Stage UnreviewedAccepted
    • Property Type UncategorizedBug
  • Ticket #24781 – Description

    initial v1  
    11in python2:
    2 
     2{{{#!python
    33>>> from django.apps import apps
    44>>> apps.get_app_config('admin').verbose_name
    5 
     5}}}
    66displays:
     7{{{#!python
    78<django.utils.functional.__proxy__ object at 0x2c24c10>
     9}}}
    810
    911instead of name
Back to Top