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
Pull Request — master (#81)
by
unknown
01:13
created

  A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A efaultRegistrationSupplement.__str__() 0 3 1
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3
"""
4
A simple registration supplement model which requires ``remarks``
5
"""
6
__author__ = 'Alisue <[email protected]>'
7
from django.db import models
8
from django.utils.text import ugettext_lazy as _
9
from django.utils.encoding import python_2_unicode_compatible
10
from registration.supplements.base import RegistrationSupplementBase
11
12
13
@python_2_unicode_compatible
14
class DefaultRegistrationSupplement(RegistrationSupplementBase):
15
    """A simple registration supplement model which requires remarks"""
16
    remarks = models.TextField(_('remarks'))
17
18
    def __str__(self):
19
        """return a summary of this addition"""
20
        return self.remarks
21
22
    # it is required to specify from django 1.6
23
    class Meta:
24
        app_label = 'registration'
25