From f5b36142d2c9f7481c88ca609ac7f07866085cca Mon Sep 17 00:00:00 2001 From: Eevee Date: Sat, 5 Dec 2009 20:13:15 -0800 Subject: [PATCH 1/1] Make User.name unique. --- floof/model/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.7.4