apps.py 645 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
# -*- coding: utf-8
from django.apps import AppConfig
from django.contrib.auth import get_user_model


class CoursesStatsConfig(AppConfig):
    name = 'courses.stats'

    def ready(self):
        from actstream import registry
        registry.register(get_user_model())
        registry.register('courses.Course')
13
        registry.register('courses.classroom.Classroom')
14
        registry.register('stats.AccessibleArea')
15 16
        registry.register('discussion.Topic')
        registry.register('discussion.Forum')
17
        registry.register('discussion.Comment')
18
        registry.register('cards.Card')
19
        registry.register('courses.Unit')