django-jazzmin
django-jazzmin copied to clipboard
Broken visuals in Model list for different users permissions
After adding list_editable
to admin model, I have broken visual table in model list.
This is Admin user view:
This is Manager user view (Managers can only Change and Delete items, and can't Create):
I think it just reserve place for admins role CRUD icons for Editable field
It can be fixed by setting min-width
or width
style for first-item
of list
P.S. Thanks for your work, it really amazing =)
You could add the style attribute for the field on the form. For example.
base_salary = forms.IntegerField( required=False, label='Salario Base', min_value=0, widget=forms.NumberInput(attrs={ 'style': 'width:25%' }) )