GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 646504...bef196 )
by Lambda
56s
created

PermissionConfig   A

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 5 2
1
from django.apps import AppConfig
2
3
4
class PermissionConfig(AppConfig):
5
    name = "permission"
6
    verbose_name = "Permission"
7
8
    def ready(self):
9
        from permission.conf import settings
10
        if settings.PERMISSION_AUTODISCOVER_ENABLE:
11
            from permission.utils.autodiscover import autodiscover
12
            autodiscover()
13