Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 747 Bytes

customization.rst

File metadata and controls

24 lines (16 loc) · 747 Bytes

Create your own fields

If you need to define your own fields inheriting an existing one, you can fastly create them by importing dynamic_fields

from django_form_builder import dynamic_fields

make an inheritance declaration

class MyCustomField(dynamic_fields.DynamicFieldClassName):
     # e.g. MyCustomField(BaseCustomField)
 ...

and override get_fields(), define_value() and raise_error() according to your needs.