#25039: Automatic setup verbose_name for related fields
-------------------------------------+-------------------------------------
Reporter: djbaldey | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Uncategorized | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by djbaldey):
Replying to [comment:1 timgraham]:
> The patch uses deprecated APIs so the test suit can't run, but even when
updated as below, there are still problems running the tests.
> {{{
> if self.verbose_name is None and self.remote_field and not
isinstance(self.remote_field.model, six.string_types):
> self.verbose_name = self.remote_field.model._meta.verbose_name
> }}}
Sorry, that was meant for 1.8, I'll try to rewrite under master
--
Ticket URL: <https://code.djangoproject.com/ticket/25039#comment:2>
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/066.98fd9d05b686b6b06a5a5270c3224f77%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.