Add migration step to create nomcom models Add admin interface to nomcom models. Maybe in a future we delete some model admin but now it's good to test Add PUBLIC_KEYS_URL settings variable to define path where public keys are saved Add new models in name app to use feedback type and nominee position state Add admin interface for new name models Add migration steps to create feedback type and nominee-position states Comment urls.py until we refactor #904 #905 tickets with the new model See #909 - Legacy-Id: 5090
63 lines
2.4 KiB
Python
63 lines
2.4 KiB
Python
# Copyright The IETF Trust 2007, All Rights Reserved
|
|
|
|
from django.db import models
|
|
|
|
class NameModel(models.Model):
|
|
slug = models.CharField(max_length=8, primary_key=True)
|
|
name = models.CharField(max_length=255)
|
|
desc = models.TextField(blank=True)
|
|
used = models.BooleanField(default=True)
|
|
order = models.IntegerField(default=0)
|
|
|
|
def __unicode__(self):
|
|
return self.name
|
|
|
|
class Meta:
|
|
abstract = True
|
|
ordering = ['order']
|
|
|
|
class GroupStateName(NameModel):
|
|
"""BOF, Proposed, Active, Dormant, Concluded"""
|
|
class GroupTypeName(NameModel):
|
|
"""IETF, Area, WG, RG, Team, etc."""
|
|
class RoleName(NameModel):
|
|
"""AD, Chair"""
|
|
class StreamName(NameModel):
|
|
"""IETF, IAB, IRTF, ISE, Legacy"""
|
|
class DocRelationshipName(NameModel):
|
|
"""Updates, Replaces, Obsoletes, Reviews, ... The relationship is
|
|
always recorded in one direction."""
|
|
class DocTypeName(NameModel):
|
|
"""Draft, Agenda, Minutes, Charter, Discuss, Guideline, Email,
|
|
Review, Issue, Wiki"""
|
|
class DocTagName(NameModel):
|
|
"""Waiting for Reference, IANA Coordination, Revised ID Needed,
|
|
External Party, AD Followup, Point Raised - Writeup Needed, ..."""
|
|
class StdLevelName(NameModel):
|
|
"""Proposed Standard, (Draft Standard), Internet Standard, Experimental,
|
|
Informational, Best Current Practice, Historic, ..."""
|
|
class IntendedStdLevelName(NameModel):
|
|
"""Proposed Standard, (Draft Standard), Internet Standard, Experimental,
|
|
Informational, Best Current Practice, Historic, ..."""
|
|
class DocReminderTypeName(NameModel):
|
|
"Stream state"
|
|
class BallotPositionName(NameModel):
|
|
""" Yes, No Objection, Abstain, Discuss, Block, Recuse """
|
|
blocking = models.BooleanField(default=False)
|
|
class GroupBallotPositionName(NameModel):
|
|
""" Yes, No, Block, Abstain """
|
|
class MeetingTypeName(NameModel):
|
|
"""IETF, Interim"""
|
|
class SessionStatusName(NameModel):
|
|
"""Waiting for Approval, Approved, Waiting for Scheduling, Scheduled, Cancelled, Disapproved"""
|
|
class TimeSlotTypeName(NameModel):
|
|
"""Session, Break, Registration"""
|
|
class ConstraintName(NameModel):
|
|
"""Conflict"""
|
|
class LiaisonStatementPurposeName(NameModel):
|
|
"""For action, For comment, For information, In response, Other"""
|
|
class NomineePositionState(NameModel):
|
|
"""Status of a candidate for a position: None, Accepted, Declined"""
|
|
class FeedbackType(NameModel):
|
|
"""Type of feedback: questionnaires, nominations, comments"""
|