TestappConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A ready() 0 6 2
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