Skip to content

Commit df801b6

Browse files
committed
Moved from idsubmit branch. Added a new checkbox field to the mailing list creation and approval screens for an option to require the new list to use TMDA
- Legacy-Id: 950
1 parent 1f3beff commit df801b6

5 files changed

Lines changed: 6 additions & 0 deletions

File tree

ietf/mailinglists/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class MailingList(models.Model):
9898
approved_date = models.DateField(null=True, blank=True)
9999
reason_to_delete = models.TextField(blank=True)
100100
domain_name = models.CharField(maxlength=10)
101+
require_tmda = models.IntegerField("Require TMDA", default=0, choices=YESNO_CHOICES)
101102
def __str__(self):
102103
return self.mlist_name
103104
def save(self, *args, **kwargs):

ietf/mailinglists/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def non_wg_wizard(request):
167167
'post_who': forms.Select(choices=(('1', 'List members only'), ('0', 'Open'))),
168168
'post_admin': forms.Select(choices=(('0', 'No'), ('1', 'Yes'))),
169169
'archive_private': forms.Select(choices=(('0', 'No'), ('1', 'Yes'))),
170+
'require_tmda': forms.Select(choices=(('0', 'No'), ('1', 'Yes'))),
170171
'domain_name': forms.HiddenInput(),
171172
}
172173

ietf/templates/mailinglists/list_summary.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
<tr><td> Messages to this list can be posted by:</td><td>{{ list.get_post_who_display }}</td></tr>
1717
<tr><td> Administrator approval required for posts: </td><td>{{ list.post_admin|yesno:"YES,NO" }}</td></tr>
1818
<tr><td> Private Archive: </td><td>{{ list.archive_private|yesno:"YES,NO" }}</td></tr>
19+
<tr><td> Require TMDA: </td><td>{{ list.require_tmda|yesno:"YES,NO" }}</td></tr>
1920
<tr><td> Specific information about how to access and move the exiting archive from a remote location (optional): </td><td>{{ list.archive_remote }}</td></tr>
2021
{% endifequal %}

ietf/templates/mailinglists/list_summary.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Administrator approval required for posts: {{ list.post_admin|yesno:"YES,NO" }}
3333

3434
Private Archive: {{ list.archive_private|yesno:"YES,NO" }}
3535

36+
Require TMDA: {{ list.require_tmda|yesno:"YES,NO" }}
37+
3638
Specific information about how to access and move the existing archive from a remote location (optional):
3739
{{ list.archive_remote }}
3840

test/sql_fixup.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-- This file holds needed corrections to the database until they have been applied to
22
-- the live database. This file is applied after importing a new dump of the live DB.
33

4+
ALTER TABLE `MailingList` ADD `require_tmda` INT( 10 ) NOT NULL AFTER `domain_name` ;
45

0 commit comments

Comments
 (0)