ore.models.notification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 13
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A Notification.__unicode__() 0 2 1
1
from django.contrib.auth.models import User
2
from django.db import models
3
4
5
class Notification(models.Model):
6
7
    class Meta:
8
        app_label = 'ore'
9
10
    title = models.CharField(max_length=255)
11
    users = models.ManyToManyField(User)
12
    modified = models.DateTimeField(auto_now=True)
13
    created = models.DateTimeField(auto_now_add=True, editable=False)
14
    text = models.CharField(max_length=255)
15
16
    def __unicode__(self):
17
        return unicode(self.title)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable unicode does not seem to be defined.
Loading history...
18