Make User.name unique.
authorEevee <git@veekun.com>
Sun, 6 Dec 2009 04:13:15 +0000 (20:13 -0800)
committerEevee <git@veekun.com>
Sun, 6 Dec 2009 04:13:15 +0000 (20:13 -0800)
floof/model/users.py

index bacdfe6..a6f3a6d 100644 (file)
@@ -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')