@@ -3,7 +3,7 @@ |
||
3 | 3 |
from djadmin import ExportExcelModelAdmin, ReadonlyModelAdmin |
4 | 4 |
from django.contrib import admin |
5 | 5 |
|
6 |
-from tamron.models import TamronNavInfo, TamronRegisterInfo, TamronSliderInfo |
|
6 |
+from tamron.models import TamronNavInfo, TamronRegisterInfo, TamronSliderInfo, TamronUserInfo |
|
7 | 7 |
|
8 | 8 |
|
9 | 9 |
class TamronSliderInfoAdmin(admin.ModelAdmin): |
@@ -21,6 +21,12 @@ class TamronRegisterInfoAdmin(admin.ModelAdmin): |
||
21 | 21 |
list_filter = ('fid', ) |
22 | 22 |
|
23 | 23 |
|
24 |
+class TamronUserInfoAdmin(admin.ModelAdmin): |
|
25 |
+ list_display = ('user', 'sex', 'zhiwei', 'tel', 'email', 'pinpai', 'xinghao', 'gzleixing', 'gxtedian') |
|
26 |
+ list_filter = ('sex', ) |
|
27 |
+ |
|
28 |
+ |
|
24 | 29 |
admin.site.register(TamronSliderInfo, TamronSliderInfoAdmin) |
25 | 30 |
admin.site.register(TamronNavInfo, TamronNavInfoAdmin) |
26 | 31 |
admin.site.register(TamronRegisterInfo, TamronRegisterInfoAdmin) |
32 |
+admin.site.register(TamronUserInfo, TamronUserInfoAdmin) |
@@ -69,3 +69,47 @@ class TamronRegisterInfo(models.Model): |
||
69 | 69 |
|
70 | 70 |
def __unicode__(self): |
71 | 71 |
return unicode(self.pk) |
72 |
+ |
|
73 |
+ |
|
74 |
+class TamronUserInfo(models.Model): |
|
75 |
+ title = models.CharField(_(u'title'), max_length=255, blank=True, null=True, help_text=u'???') |
|
76 |
+ name = models.CharField(_(u'name'), max_length=255, blank=True, null=True, help_text=u'???') |
|
77 |
+ content = models.CharField(_(u'content'), max_length=300, blank=True, null=True, help_text=u'???') |
|
78 |
+ gsname = models.CharField(_(u'gsname'), max_length=255, blank=True, null=True, help_text=u'???') |
|
79 |
+ lxname = models.CharField(_(u'lxname'), max_length=20, blank=True, null=True, help_text=u'???') |
|
80 |
+ dizhi = models.CharField(_(u'dizhi'), max_length=100, blank=True, null=True, help_text=u'???') |
|
81 |
+ |
|
82 |
+ user = models.CharField(_(u'user'), max_length=100, blank=True, null=True, help_text=u'会员帐户') |
|
83 |
+ sex = models.CharField(_(u'sex'), max_length=1, blank=True, null=True, help_text=u'会员性别') |
|
84 |
+ zhiwei = models.CharField(_(u'zhiwei'), max_length=32, blank=True, null=True, help_text=u'会员职业') |
|
85 |
+ tel = models.CharField(_(u'tel'), max_length=255, blank=True, null=True, help_text=u'会员手机号') |
|
86 |
+ email = models.CharField(_(u'email'), max_length=100, blank=True, null=True, help_text=u'会员邮箱') |
|
87 |
+ password = models.CharField(_(u'password'), max_length=100, blank=True, null=True, help_text=u'会员密码') |
|
88 |
+ |
|
89 |
+ province_id = models.IntegerField(_(u'province_id'), default=1, help_text=u'会员省份唯一标识') |
|
90 |
+ city_id = models.IntegerField(_(u'city_id'), default=1, help_text=u'会员城市唯一标识') |
|
91 |
+ |
|
92 |
+ pinpai = models.CharField(_(u'pinpai'), max_length=32, blank=True, null=True, help_text=u'会员相机品牌') |
|
93 |
+ xinghao = models.CharField(_(u'xinghao'), max_length=32, blank=True, null=True, help_text=u'会员相机品牌') |
|
94 |
+ gzleixing = models.CharField(_(u'gzleixing'), max_length=255, blank=True, null=True, help_text=u'近期关注镜头产品类型') |
|
95 |
+ gxtedian = models.CharField(_(u'gxtedian'), max_length=255, blank=True, null=True, help_text=u'购买镜头时最关心的产品特点') |
|
96 |
+ time = models.CharField(_(u'time'), max_length=10, blank=True, null=True, help_text=u'接触摄影时间') |
|
97 |
+ shifou = models.CharField(_(u'shifou'), max_length=8, blank=True, null=True, help_text=u'对腾龙镜头的了解程度') |
|
98 |
+ chanpin = models.CharField(_(u'chanpin'), max_length=8, blank=True, null=True, help_text=u'是否拥有腾龙产品') |
|
99 |
+ |
|
100 |
+ gmtime = models.CharField(_(u'gmtime'), max_length=10, blank=True, null=True, help_text=u'购买日期') |
|
101 |
+ cpxinghao = models.CharField(_(u'cpxinghao'), max_length=32, blank=True, null=True, help_text=u'会员相机品牌') |
|
102 |
+ cpkakou = models.CharField(_(u'cpkakou'), max_length=32, blank=True, null=True, help_text=u'会员相机品牌') |
|
103 |
+ xuliehao = models.CharField(_(u'xuliehao'), max_length=32, blank=True, null=True, help_text=u'序列号') |
|
104 |
+ |
|
105 |
+ pic = models.CharField(_(u'pic'), max_length=255, blank=True, null=True, help_text=u'会员头像') |
|
106 |
+ |
|
107 |
+ ctime = models.IntegerField(_(u'ctime'), default=0, help_text=u'创建时间') |
|
108 |
+ |
|
109 |
+ class Meta: |
|
110 |
+ verbose_name = _(u'会员信息') |
|
111 |
+ verbose_name_plural = _(u'会员信息') |
|
112 |
+ db_table = 'shidu_msg' |
|
113 |
+ |
|
114 |
+ def __unicode__(self): |
|
115 |
+ return unicode(self.pk) |