Commit f7bfd6da authored by Skia's avatar Skia
Browse files

Add getattribute to PageRev for getting owner_group&co

parent aa732a4e
......@@ -315,6 +315,16 @@ class PageRev(models.Model):
def __str__(self):
return str(self.__dict__)
def __getattribute__(self, attr):
if attr == "owner_group":
elif attr == "edit_group":
elif attr == "view_group":
return object.__getattribute__(self, attr)
def save(self, *args, **kwargs):
super(PageRev, self).save(*args, **kwargs)
# Don't forget to unlock, otherwise, people will have to wait for the page's timeout
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment