修改models顺序

pull/2/head
guanghongwei 2014-09-16 12:14:33 +08:00
parent 538b8c8a35
commit 45b874fcd8
1 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,13 @@
from django.db import models
class Group(models.Model):
name = models.CharField(max_length=50)
def __unicode__(self):
return self.name
class User(models.Model):
username = models.CharField(max_length=50)
password = models.CharField(max_length=100)
@ -15,8 +22,3 @@ class User(models.Model):
return self.username
class Group(models.Model):
name = models.CharField(max_length=50)
def __unicode__(self):
return self.name