ore.models.notification.Notification.__unicode__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 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