Beispiel #1
0
 def _generate_rest_fieldset(self):
     return ModelRestFieldset.create_from_flat_list(
         list(self._get_list_display_extra()) + list(self._get_list_display()), self.model
     )
Beispiel #2
0
 def get_rest_extra_fields(self, request, obj=None):
     fieldset = super(UIRestModelISCore, self).get_rest_extra_fields(request, obj)
     fieldset.join(rfs(self.ui_rest_extra_fields))
     return fieldset.join(
         ModelRestFieldset.create_from_flat_list(self.get_list_display(request), self.model)
     )