ebertti / django-admin-easy

Collection of admin fields and decorators to help to create computed or custom fields more friendly and easy way
https://pypi.org/project/django-admin-easy/
MIT License
471 stars 29 forks source link

Easy way to build fieldset #8

Closed ebertti closed 4 years ago

ebertti commented 8 years ago

Just for make it more verbose and easy to maintain:

fieldset = (
    easy.Fieldset(name, 
         fields=( 
                'field1', 
                easy.FieldsetLine('field2', 'field3',)
                'field5', 
                easy.FieldsetLine('field6',)
         ),
         classes='some_class',
         collapse=False
         wide=False
    )
)