增加了用户管理和编辑的API及相应的测试

This commit is contained in:
hohoTT
2015-08-07 20:25:58 +08:00
parent d64b99eed3
commit 69385e96d2
5 changed files with 136 additions and 8 deletions

View File

@@ -21,6 +21,8 @@ class User(AbstractBaseUser):
real_name = models.CharField(max_length=30, blank=True, null=True)
# 用户邮箱
email = models.EmailField(max_length=254, blank=True, null=True)
# 用户注册时间
create_time = models.DateTimeField(auto_now_add=True)
# 0代表不是管理员 1是普通管理员 2是超级管理员
admin_type = models.IntegerField(default=0)