| @@ -0,0 +1,20 @@ | ||
| 1 | +# -*- coding: utf-8 -*- | |
| 2 | +# Generated by Django 1.11.26 on 2020-12-21 03:15 | |
| 3 | +from __future__ import unicode_literals | |
| 4 | + | |
| 5 | +from django.db import migrations, models | |
| 6 | + | |
| 7 | + | |
| 8 | +class Migration(migrations.Migration): | |
| 9 | + | |
| 10 | + dependencies = [ | |
| 11 | +        ('mch', '0058_auto_20201202_1203'), | |
| 12 | + ] | |
| 13 | + | |
| 14 | + operations = [ | |
| 15 | + migrations.AlterField( | |
| 16 | + model_name='administratorinfo', | |
| 17 | + name='admin_type', | |
| 18 | + field=models.IntegerField(choices=[(0, '\u7ba1\u7406\u5458'), (3, '\u9500\u552e\u5458'), (1, '\u7ef4\u4fee\u5458'), (2, '\u8fd0\u8425\u4eba\u5458')], db_index=True, default=0, help_text='\u7ba1\u7406\u5458\u7c7b\u578b', verbose_name='admin_type'), | |
| 19 | + ), | |
| 20 | + ] | 
| @@ -15,10 +15,14 @@ from coupon.models import CouponInfo | ||
| 15 | 15 | class AdministratorInfo(BaseModelMixin): | 
| 16 | 16 | ADMINISTRATOR = 0 | 
| 17 | 17 | MAINTENANCE = 1 | 
| 18 | + OPERATOR = 2 | |
| 19 | + SALESMAN = 3 | |
| 18 | 20 |  | 
| 19 | 21 | USER_TYPE_TUPLE = ( | 
| 20 | 22 | (ADMINISTRATOR, u'管理员'), | 
| 23 | + (SALESMAN, u'销售员'), | |
| 21 | 24 | (MAINTENANCE, u'维修员'), | 
| 25 | + (OPERATOR, u'运营人员'), | |
| 22 | 26 | ) | 
| 23 | 27 |  | 
| 24 | 28 | ACTIVATED = 1 |