Fix bugs in AreaGroup proxy

- Legacy-Id: 3792
This commit is contained in:
Ole Laursen 2012-01-04 15:01:36 +00:00
parent e7e992b80e
commit dc72d97962

View file

@ -246,7 +246,7 @@ class IRTF(Group):
proxy = True
class AreaGroup(Group):
objects = TranslatingManager(dict(group="pk"),
objects = TranslatingManager(dict(group=lambda v: ("pk", v.pk)),
always_filter=dict(type="wg"))
def from_object(self, base):
@ -261,3 +261,6 @@ class AreaGroup(Group):
@property
def group(self):
return self
class Meta:
proxy = True