Skip to content

Commit

Permalink
fix fake add index example
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyq0826 committed May 14, 2017
1 parent cc624bf commit 5355f34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions turbo/fake/project_template/models/user/model.py
Expand Up @@ -10,10 +10,13 @@ class User(Model):
passwd: user account passwd
atime: added time
"""
index = [
tuple([('email', 1)])
]
name = 'user'

field = {
'email': (basestring, ''),
'passwd': (basestring, ''),
'email': (str, ''),
'passwd': (str, ''),
'atime': (datetime, None),
}

0 comments on commit 5355f34

Please sign in to comment.