#29982: django model admin fields option has incorrect html view -----------------------------------------+----------------------------- Reporter: Tur8008 | Owner: nobody Type: Bug | Status: new Component: Uncategorized | Version: 2.1 Severity: Normal | Keywords: model admin Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------+----------------------------- Hello. I've just updated django from 2.0 to 2.1.3 release and I have a problem with django admin site since. The problem is incorrect html view of model admin fields option.
I have this code in my admin.py {{{ @admin.register(Orders) class OrdersAdmin(admin.ModelAdmin): list_display = ('customer', 'contact_pers', 'get_email', 'order_number', 'order_date', 'products_list', 'is_add_lic', 'contractor', 'partner') fields = ('customer', ('order_number', 'order_date'), 'payment_day', 'products', 'contact_pers', 'contractor', 'is_add_lic', 'partner') }}} According to documentation fields ''order_number" and "order_date" must be on the same line because they're wraped in their own tuple. Вut it's broke since 2.1.0 release, as I guess. To demostrate what I actually have I attached a couple of screnshots -- Ticket URL: <https://code.djangoproject.com/ticket/29982> 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/050.3ba374bb51542053d46b0fc92f329f63%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.