Skip to main content
Now, Let me create various model and integrate fastdaisy-admin into fastapi application.

Permissions

You can configure a few general permissions for this model. The following options are available:
  • can_create: Allow to create new instances. Default value is True.
  • can_edit: Allow to edit created instances. Default value is True.
  • can_delete: Allow to delete model instance. Default value is True.
  • only_view: Only allow to view instance . Default value is False.
  • can_export: The model data can be exported in the list page. Default value is True.

Metadata

The metadata for the model. The options are:
  • name: Display name for this model. Default value is the class name.
  • name_plural: Display plural name for this model. Default value is class name + s.
  • icon: Icon to be displayed for this model in the admin. Only FontAwesome supported.
  • category: Category name to display group of ModelView classes together in dropdown.
  • category_icon: Category icon to display.
  • divider_title: Divider title that separate Modelview or group of Modelview classes in sidebar.