From: Eevee Date: Sun, 6 Dec 2009 04:13:15 +0000 (-0800) Subject: Make User.name unique. X-Git-Url: http://git.veekun.com/zzz-floof.git/commitdiff_plain/f5b36142d2c9f7481c88ca609ac7f07866085cca?ds=sidebyside Make User.name unique. --- diff --git a/floof/model/users.py b/floof/model/users.py index bacdfe6..a6f3a6d 100644 --- a/floof/model/users.py +++ b/floof/model/users.py @@ -11,7 +11,7 @@ from elixir import * from search import GalleryWidget class User(Entity): - name = Field(Unicode(20)) + name = Field(Unicode(20), unique=True) display_name = Field(Unicode(20)) uploads = OneToMany('Art') has_many('identity_urls', of_kind='IdentityURL')