Skip to content

Commit

Permalink
a few style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jm2242 committed Feb 3, 2018
1 parent 3c1f67f commit f70f12d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions graphene_django/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Reporter(models.Model):
'Reporter Type',
null=True,
blank=True,
choices=[(1, u'Regular'), (2, u'CNN Reporter')])
choices=[(1, u'Regular'), (2, u'CNN Reporter')] )

def __str__(self): # __unicode__ on Python 2
return "%s %s" % (self.first_name, self.last_name)
Expand All @@ -47,8 +47,8 @@ def __init__(self, *args, **kwargs):
"""
Override the init method so that during runtime, Django
can know that this object can be a CNNReporter by casting
it to the proxy model. Otherwise, as far as Django knows,
when a CNNReporter is pulled from the database, it is still
it to the proxy model. Otherwise, as far as Django knows,
when a CNNReporter is pulled from the database, it is still
of type Reporter. This was added to test proxy model support.
"""
super(Reporter, self).__init__(*args, **kwargs)
Expand All @@ -61,7 +61,7 @@ class CNNReporter(Reporter):
proxy model support
"""
class Meta:
proxy=True
proxy = True


class Article(models.Model):
Expand Down

0 comments on commit f70f12d

Please sign in to comment.