TestappConfig.ready()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
dl 0
loc 6
rs 10
1
from django.apps import AppConfig
2
3
4
class TestappConfig(AppConfig):
5
    name = 'testapp'
6
7
    def ready(self):
8
        from actstream.registry import register
9
        register(self.get_model('player'))
10
        myuser = self.get_model('myuser')
11
        if myuser:
12
            register(myuser)
13