Permalink
Browse files

[QA] Alphabetical ordering in model definitions.

  • Loading branch information...
JNRowe committed Apr 28, 2012
1 parent 0503a51 commit 8b3c97c2d187a16b49d8a5fd882936fa31eac387
Showing with 29 additions and 29 deletions.
  1. +29 −29 hubugs/models.py
View
@@ -27,29 +27,29 @@ def __init__(self, **kwargs):
class User(micromodels.Model):
+ id = micromodels.IntegerField()
+ avatar_url = micromodels.CharField()
+ gravatar_id = micromodels.CharField()
login = micromodels.CharField()
url = micromodels.CharField()
- gravatar_id = micromodels.CharField()
- avatar_url = micromodels.CharField()
- id = micromodels.IntegerField()
def __repr__(self):
return "<%s %r>" % (self.__class__.__name__, self.login)
class Label(micromodels.Model):
color = micromodels.CharField()
- url = micromodels.CharField()
name = micromodels.CharField()
+ url = micromodels.CharField()
def __repr__(self):
return "<%s %r>" % (self.__class__.__name__, self.name)
class PullRequest(micromodels.Model):
- patch_url = micromodels.CharField()
diff_url = micromodels.CharField()
html_url = micromodels.CharField()
+ patch_url = micromodels.CharField()
def __nonzero__(self):
return bool(self.patch_url)
@@ -59,75 +59,75 @@ def __repr__(self):
class Issue(micromodels.Model):
- updated_at = ISODateTimeField()
- comments = micromodels.IntegerField()
+ id = micromodels.IntegerField()
assignee = micromodels.ModelField(User)
- state = micromodels.CharField()
+ body = micromodels.CharField()
+ body_html = micromodels.CharField()
closed_at = ISODateTimeField()
- milestone = micromodels.CharField()
- url = micromodels.CharField()
- user = micromodels.ModelField(User)
closed_by = micromodels.ModelField(User)
- title = micromodels.CharField()
+ comments = micromodels.IntegerField()
created_at = ISODateTimeField()
+ html_url = micromodels.CharField()
labels = micromodels.ModelCollectionField(Label)
+ milestone = micromodels.CharField()
number = micromodels.IntegerField()
- body = micromodels.CharField()
- body_html = micromodels.CharField()
pull_request = micromodels.ModelField(PullRequest)
- id = micromodels.IntegerField()
- html_url = micromodels.CharField()
+ state = micromodels.CharField()
+ title = micromodels.CharField()
+ updated_at = ISODateTimeField()
+ url = micromodels.CharField()
+ user = micromodels.ModelField(User)
def __repr__(self):
return "<%s %s %r>" % (self.__class__.__name__, self.id,
self.title[:20])
class Comment(micromodels.Model):
- user = micromodels.ModelField(User)
- created_at = ISODateTimeField()
+ id = micromodels.IntegerField()
body = micromodels.CharField()
body_html = micromodels.CharField()
- url = micromodels.CharField()
- id = micromodels.IntegerField()
+ created_at = ISODateTimeField()
updated_at = ISODateTimeField()
+ url = micromodels.CharField()
+ user = micromodels.ModelField(User)
def __repr__(self):
return "<%s %s %r>" % (self.__class__.__name__, self.id,
self.body[:20])
class Application(micromodels.Model):
- url = micromodels.CharField()
name = micromodels.CharField()
+ url = micromodels.CharField()
def __repr__(self):
return "<%s %r>" % (self.__class__.__name__, self.name)
class Authorisation(micromodels.Model):
id = micromodels.IntegerField()
- url = micromodels.CharField()
- scopes = micromodels.FieldCollectionField(micromodels.CharField())
- token = micromodels.CharField()
app = micromodels.ModelField(Application)
+ created_at = ISODateTimeField()
note = micromodels.CharField()
note_url = micromodels.CharField()
- created_at = ISODateTimeField()
+ scopes = micromodels.FieldCollectionField(micromodels.CharField())
+ token = micromodels.CharField()
updated_at = ISODateTimeField()
+ url = micromodels.CharField()
def __repr__(self):
return "<%s %s %r>" % (self.__class__.__name__, self.id,
self.note[:20])
class Organization(micromodels.Model):
- login = micromodels.CharField()
- url = micromodels.CharField()
- gravatar_id = micromodels.CharField()
- avatar_url = micromodels.CharField()
id = micromodels.IntegerField()
+ avatar_url = micromodels.CharField()
+ gravatar_id = micromodels.CharField()
+ login = micromodels.CharField()
type = micromodels.CharField()
+ url = micromodels.CharField()
class Repository(micromodels.Model):

0 comments on commit 8b3c97c

Please sign in to comment.