#24781: incorrect command in doc: Applications
-------------------------------+------------------------------------
Reporter: jdh13 | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by bmispelon):
* needs_better_patch: => 0
* component: Uncategorized => Documentation
* needs_tests: => 0
* needs_docs: => 0
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
Old description:
> 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
New description:
in python2:
{{{#!python
>>> from django.apps import apps
>>> apps.get_app_config('admin').verbose_name
}}}
displays:
{{{#!python
<django.utils.functional.__proxy__ object at 0x2c24c10>
}}}
instead of name
--
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).
--
Ticket URL: <https://code.djangoproject.com/ticket/24781#comment:1>
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.bf31c13dc4bb36c04fe07ccffbbeca5b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.