Source code for fairdm.contrib.collections.apps
"""App configuration for collections."""
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from fairdm.menus import AppMenu
[docs]
class CollectionsConfig(AppConfig):
"""Configuration for the Collections app."""
default_auto_field = "django.db.models.BigAutoField"
name = "fairdm.contrib.collections"
label = "collections"
verbose_name = _("Collections")
[docs]
def ready(self) -> None:
"""Add the sample and measurement listings to the data menu."""
self.populate_data_collection_menu()
return super().ready()