diff pylons_app/model/forms.py @ 329:aafd9a98ea58

added admin flag to users editing
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 01 Jul 2010 18:17:52 +0200
parents cec5cbc956c0
children 40bccabf4574
line wrap: on
line diff
--- a/pylons_app/model/forms.py	Thu Jul 01 18:10:43 2010 +0200
+++ b/pylons_app/model/forms.py	Thu Jul 01 18:17:52 2010 +0200
@@ -230,6 +230,7 @@
         username = All(UnicodeString(strip=True, min=3, not_empty=True), ValidUsername)
         if edit:
             new_password = All(UnicodeString(strip=True, min=3, not_empty=False), ValidPassword)
+            admin = StringBoolean(if_missing=False)
         else:
             password = All(UnicodeString(strip=True, min=3, not_empty=False), ValidPassword)
         active = StringBoolean(if_missing=False)