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.ready()   A

Complexity

Conditions 2

Size

Total Lines 5

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 5
rs 9.4285
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