Skip to content

fl_server_core.admin

Classes:

Name Description
GlobalModelAdmin

Admin interface for the GlobalModel.

LocalModelAdmin

Admin interface for the LocalModel.

ModelChildAdmin

Polymorphic admin model base class.

ModelParentAdmin

Admin interface for the parent Model class.

Classes

GlobalModelAdmin

Bases: ModelChildAdmin


              flowchart TD
              fl_server_core.admin.GlobalModelAdmin[GlobalModelAdmin]
              fl_server_core.admin.ModelChildAdmin[ModelChildAdmin]

                              fl_server_core.admin.ModelChildAdmin --> fl_server_core.admin.GlobalModelAdmin
                


              click fl_server_core.admin.GlobalModelAdmin href "" "fl_server_core.admin.GlobalModelAdmin"
              click fl_server_core.admin.ModelChildAdmin href "" "fl_server_core.admin.ModelChildAdmin"
            

Admin interface for the GlobalModel.

Attributes:

Name Type Description
base_model
Source code in fl_server_core/admin.py
@admin.register(GlobalModel)
class GlobalModelAdmin(ModelChildAdmin):
    """
    Admin interface for the `GlobalModel`.
    """
    base_model = GlobalModel

Attributes

base_model class-attribute instance-attribute
base_model = GlobalModel

LocalModelAdmin

Bases: ModelChildAdmin


              flowchart TD
              fl_server_core.admin.LocalModelAdmin[LocalModelAdmin]
              fl_server_core.admin.ModelChildAdmin[ModelChildAdmin]

                              fl_server_core.admin.ModelChildAdmin --> fl_server_core.admin.LocalModelAdmin
                


              click fl_server_core.admin.LocalModelAdmin href "" "fl_server_core.admin.LocalModelAdmin"
              click fl_server_core.admin.ModelChildAdmin href "" "fl_server_core.admin.ModelChildAdmin"
            

Admin interface for the LocalModel.

Attributes:

Name Type Description
base_model
Source code in fl_server_core/admin.py
@admin.register(LocalModel)
class LocalModelAdmin(ModelChildAdmin):
    """
    Admin interface for the `LocalModel`.
    """
    base_model = LocalModel

Attributes

base_model class-attribute instance-attribute
base_model = LocalModel

ModelChildAdmin

Bases: PolymorphicChildModelAdmin


              flowchart TD
              fl_server_core.admin.ModelChildAdmin[ModelChildAdmin]

              

              click fl_server_core.admin.ModelChildAdmin href "" "fl_server_core.admin.ModelChildAdmin"
            

Polymorphic admin model base class.

Attributes:

Name Type Description
base_model
Source code in fl_server_core/admin.py
class ModelChildAdmin(PolymorphicChildModelAdmin):
    """
    Polymorphic admin model base class.
    """
    base_model = Model

Attributes

base_model class-attribute instance-attribute
base_model = Model

ModelParentAdmin

Bases: PolymorphicParentModelAdmin


              flowchart TD
              fl_server_core.admin.ModelParentAdmin[ModelParentAdmin]

              

              click fl_server_core.admin.ModelParentAdmin href "" "fl_server_core.admin.ModelParentAdmin"
            

Admin interface for the parent Model class.

This includes support for GlobalModel as well as LocalModel.

Attributes:

Name Type Description
base_model
child_models
list_filter
Source code in fl_server_core/admin.py
@admin.register(Model)
class ModelParentAdmin(PolymorphicParentModelAdmin):
    """
    Admin interface for the parent Model class.

    This includes support for `GlobalModel` as well as `LocalModel`.
    """
    base_model = Model
    child_models = [GlobalModel, LocalModel]
    list_filter = (PolymorphicChildModelFilter,)

Attributes

base_model class-attribute instance-attribute
base_model = Model
child_models class-attribute instance-attribute
child_models = [GlobalModel, LocalModel]
list_filter class-attribute instance-attribute
list_filter = (PolymorphicChildModelFilter,)