#30231: Field's verbose_name is ignored in FilteredSelectMultiple widget for inlines created with "Add another" button -------------------------------------+------------------------------------- Reporter: Florian Schuler | Owner: Ahisahar | Pretel Type: Bug | Status: assigned Component: contrib.admin | Version: 2.1 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: 1 -------------------------------------+------------------------------------- Changes (by Tim Graham):
* stage: Unreviewed => Accepted * easy: 1 => 0 Comment: I reproduced at 9681e968ebdcd58cac99c1e60f0a6932abd4e5c9 with this patch on the tutorial: {{{ #!diff diff --git a/polls/admin.py b/polls/admin.py index f1bf573..0a184ab 100644 --- a/polls/admin.py +++ b/polls/admin.py @@ -6,6 +6,7 @@ from .models import Choice, Question class ChoiceInline(admin.TabularInline): model = Choice extra = 3 + filter_horizontal = ['groups'] class QuestionAdmin(admin.ModelAdmin): diff --git a/polls/models.py b/polls/models.py index 38ae549..b0756e3 100644 --- a/polls/models.py +++ b/polls/models.py @@ -4,6 +4,7 @@ import datetime from six import python_2_unicode_compatible +from django.contrib.auth.models import Group from django.db import models from django.utils import timezone @@ -29,6 +30,7 @@ class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) votes = models.IntegerField(default=0) + groups = models.ForeignKey(Group, blank=True, verbose_name='test') def __str__(self): return self.choice_text }}} -- Ticket URL: <https://code.djangoproject.com/ticket/30231#comment:5> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/072.3179fc57d80490e88ad7bfffaf2ca2db%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.