Opened 10 years ago

Last modified 9 years ago

#24781 closed Bug

incorrect command in doc: Applications — at Version 1

Reported by: jdh13 Owned by: nobody
Component: Utilities Version: 1.7
Severity: Normal Keywords: py2
Cc: Chesco Igual Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Baptiste Mispelon)

in python2:

>>> from django.apps import apps
>>> apps.get_app_config('admin').verbose_name

displays:

<django.utils.functional.__proxy__ object at 0x2c24c10>

instead of name

Change History (1)

comment:1 by Baptiste Mispelon, 10 years ago

Component: UncategorizedDocumentation
Description: modified (diff)
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

(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).

Note: See TracTickets for help on using tickets.
Back to Top