- [Show page]
- [Old revisions]
- [[unknown link type]]
- []
Differences
This shows you the differences between two versions of the page.
python:django:signups-users [2014/09/07 01:06] admin created |
python:django:signups-users [2014/09/10 17:58] (current) admin |
||
---|---|---|---|
Line 7: | Line 7: | ||
# null= se tyka databaze, kdezto | # null= se tyka databaze, kdezto | ||
# blank= se tyka vyplneni formulare | # blank= se tyka vyplneni formulare | ||
+ | from django.utils.encoding import smart_unicode | ||
class customer(models.Model): | class customer(models.Model): | ||
Line 15: | Line 16: | ||
updated = models.DateTimeField(auto_now_add=True, auto_now=False) | updated = models.DateTimeField(auto_now_add=True, auto_now=False) | ||
+ | def __unicode__(self): | ||
+ | return self.email | ||
</code> | </code> | ||
python/django/signups-users.1410044799.txt.gz · Last modified: 2014/09/07 01:06 by admin