@@ -38,7 +38,7 @@ class Reporter(models.Model):
38
38
'Reporter Type' ,
39
39
null = True ,
40
40
blank = True ,
41
- choices = [(1 , u'Regular' ), (2 , u'CNN Reporter' )])
41
+ choices = [(1 , u'Regular' ), (2 , u'CNN Reporter' )] )
42
42
43
43
def __str__ (self ): # __unicode__ on Python 2
44
44
return "%s %s" % (self .first_name , self .last_name )
@@ -47,8 +47,8 @@ def __init__(self, *args, **kwargs):
47
47
"""
48
48
Override the init method so that during runtime, Django
49
49
can know that this object can be a CNNReporter by casting
50
- it to the proxy model. Otherwise, as far as Django knows,
51
- when a CNNReporter is pulled from the database, it is still
50
+ it to the proxy model. Otherwise, as far as Django knows,
51
+ when a CNNReporter is pulled from the database, it is still
52
52
of type Reporter. This was added to test proxy model support.
53
53
"""
54
54
super (Reporter , self ).__init__ (* args , ** kwargs )
@@ -61,7 +61,7 @@ class CNNReporter(Reporter):
61
61
proxy model support
62
62
"""
63
63
class Meta :
64
- proxy = True
64
+ proxy = True
65
65
66
66
67
67
class Article (models .Model ):
0 commit comments