* Create a new models NomComGroup with public_key field. Default type is nomcom * News urls and views to separate members and chair forms * Add rolodex url when person not found. * Views access is only for secretariat and chair roles See #904 - Legacy-Id: 5069
22 lines
583 B
Python
22 lines
583 B
Python
from django.db import models
|
|
|
|
from ietf.group.models import Group
|
|
from ietf.name.models import GroupTypeName
|
|
|
|
|
|
class NomComGroup(Group):
|
|
public_key = models.TextField(verbose_name="Public Key", blank=True)
|
|
|
|
class Meta:
|
|
verbose_name_plural = "NomCom groups"
|
|
verbose_name = "NomCom group"
|
|
|
|
def save(self, *args, **kwargs):
|
|
if not self.id:
|
|
try:
|
|
self.type = GroupTypeName.objects.get(slug='nomcom')
|
|
except GroupTypeName.DoesNotExist:
|
|
pass
|
|
|
|
super(NomComGroup, self).save(*args, **kwargs)
|