Skip to content

Commit 7f27d91

Browse files
committed
Fix proxy of Area so we only return areas, proxy IRTF as used in
meetings code - Legacy-Id: 3290
1 parent d2ea0e5 commit 7f27d91

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

redesign/group/proxy.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class Meta:
3636

3737
class Area(Group):
3838
objects = TranslatingManager(dict(area_acronym__acronym="acronym",
39-
status=lambda v: ("state", {1: "active", 2: "dormant", 3: "conclude"}[v] )))
39+
status=lambda v: ("state", {1: "active", 2: "dormant", 3: "conclude"}[v] )),
40+
always_filter=dict(type="area"))
4041

4142
def from_object(self, base):
4243
for f in base._meta.fields:
@@ -201,3 +202,22 @@ class Dummy: pass
201202

202203
class Meta:
203204
proxy = True
205+
206+
class IRTF(Group):
207+
objects = TranslatingManager(dict(),
208+
always_filter=dict(type="rg"))
209+
210+
#irtf_id = models.AutoField(primary_key=True)
211+
@property
212+
def irtf_id(self):
213+
return self.pk
214+
#acronym = models.CharField(blank=True, max_length=25, db_column='irtf_acronym') # same name
215+
#name = models.CharField(blank=True, max_length=255, db_column='irtf_name') # same name
216+
#charter_text = models.TextField(blank=True,null=True)
217+
#meeting_scheduled = models.BooleanField(blank=True)
218+
def __str__(self):
219+
return self.acronym
220+
#def chairs(self): # return a set of IRTFChair objects for this work group
221+
# return IRTFChair.objects.filter(irtf=self)
222+
class Meta:
223+
proxy = True

0 commit comments

Comments
 (0)