Merged add_tags and lib.search into lib.tags.
[zzz-floof.git] / floof / model / users.py
index bacdfe6..a6f3a6d 100644 (file)
@@ -11,7 +11,7 @@ from elixir import *
 from search import GalleryWidget
 
 class User(Entity):
 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')
     display_name = Field(Unicode(20))
     uploads = OneToMany('Art')
     has_many('identity_urls', of_kind='IdentityURL')