Admin interface for snippets

This commit is contained in:
Armin Ronacher 2010-05-15 23:19:13 +02:00
parent 45df60cfc6
commit 53ce827b17
15 changed files with 214 additions and 83 deletions

View file

@ -32,6 +32,10 @@ class User(Model):
self.name = name
self.openid = openid
@property
def is_admin(self):
return self.openid in config.ADMINS
def __eq__(self, other):
return type(self) is type(other) and self.id == other.id