Opened 15 months ago

Last modified 15 months ago

#34797 closed Uncategorized

Django Admin radio fields admin.HORIZONTAL shows as vertical — at Initial Version

Reported by: Ken Ricci Owned by: nobody
Component: Uncategorized Version: 4.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Recently upgraded to Django 4.2.4 with Grappelli 3.0.7 and admin.ModelAdmin

class EmployeeAdmin(admin.ModelAdmin):

form = EmployeeAdminForm
list_display = ('user', 'department','workgroup')
search_fields = ('userusername',)
radio_fields = {'show_weekends': admin.HORIZONTAL, 'group_by_dept': admin.HORIZONTAL}

...
class Employee(models.Model):
...

show_weekends = models.BooleanField(default=False, choices=((True,'Yes'),(False,'No')),help_text="Show weekends by default")

group_by_dept = models.BooleanField(default=True, choices=((True,'Department'),(False,'Workgroup')),verbose_name="Group by", help_text="Group employees by Department or Workgroup")

Change History (2)

by Ken Ricci, 15 months ago

Attachment: admin.2.2.10.png added

Django 2.2.10

by Ken Ricci, 15 months ago

Attachment: admin.4.2.4.png added

Django 4.2.4

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