[damned-lies] Also add can_edit method to FakeTeam
- From: Claude Paroz <claudep src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [damned-lies] Also add can_edit method to FakeTeam
- Date: Sat, 10 Oct 2009 19:13:51 +0000 (UTC)
commit 615e079c76d5c18499aaf937c345b8e6f9b5c7b1
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Oct 10 21:13:47 2009 +0200
Also add can_edit method to FakeTeam
teams/models.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/teams/models.py b/teams/models.py
index c318bb9..98edd17 100644
--- a/teams/models.py
+++ b/teams/models.py
@@ -208,6 +208,9 @@ class FakeTeam(object):
# FIXME: try to avoid using a hard-coded link
return "/teams/%s" % self.language.locale
+ def can_edit(self, user):
+ return False
+
def get_description(self):
return self.language.locale
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]