def get_form_display(self): from camelot.view.forms import Form, structure_to_form if self.form_display: return structure_to_form(self.form_display) if self.list_display: return Form( self.get_table().get_fields() ) return Form([])
def get_form_display(self): from camelot.view.forms import Form, structure_to_form if self.form or self.form_display: return structure_to_form(self.form or self.form_display) if self.list_display: return Form(self.list_display) return Form([])