2014-11-13 22:23:16 +01:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class MediafileAppConfig(AppConfig):
|
2015-03-26 05:36:10 +01:00
|
|
|
name = 'openslides.mediafiles'
|
|
|
|
verbose_name = 'OpenSlides Mediafiles'
|
2014-11-13 22:23:16 +01:00
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
# Import all required stuff.
|
2015-01-24 16:35:50 +01:00
|
|
|
from openslides.utils.rest_api import router
|
|
|
|
from .views import MediafileViewSet
|
2014-11-13 22:23:16 +01:00
|
|
|
|
2015-01-24 16:35:50 +01:00
|
|
|
# Register viewsets.
|
2015-03-26 05:36:10 +01:00
|
|
|
router.register('mediafiles/mediafile', MediafileViewSet)
|