Skip to content

Commit ca570ae

Browse files
committed
Reverted an inadvertent commit of all changes.
- Legacy-Id: 12253
1 parent 276c9c1 commit ca570ae

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

ietf/doc/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DocumentInfo(models.Model):
5353
title = models.CharField(max_length=255)
5454

5555
states = models.ManyToManyField(State, blank=True) # plain state (Active/Expired/...), IESG state, stream state
56-
tags = models.ManyToManyField(DocTagName, blank=True) # Revised ID Needed, ExternalParty, AD Followup, ...
56+
tags = models.ManyToManyField(DocTagName, blank=True, null=True) # Revised ID Needed, ExternalParty, AD Followup, ...
5757
stream = models.ForeignKey(StreamName, blank=True, null=True) # IETF, IAB, IRTF, Independent Submission
5858
group = models.ForeignKey(Group, blank=True, null=True) # WG, RG, IAB, IESG, Edu, Tools
5959

ietf/doc/templatetags/ietf_filters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from ietf.doc.utils import get_document_content
1414
from django import template
1515
from django.conf import settings
16-
from django.utils.html import escape
16+
from django.utils.html import escape, fix_ampersands
1717
from django.template.defaultfilters import truncatewords_html, linebreaksbr, stringfilter, striptags, urlize
1818
from django.template import resolve_variable
1919
from django.utils.safestring import mark_safe, SafeData
@@ -69,7 +69,7 @@ def parse_email_list(value):
6969
(name, email) = parseaddr(addr)
7070
if not(name):
7171
name = email
72-
ret.append('<a href="mailto:%s">%s</a>' % ( email.replace('&', '&amp;'), escape(name) ))
72+
ret.append('<a href="mailto:%s">%s</a>' % ( fix_ampersands(email), escape(name) ))
7373
return mark_safe(", ".join(ret))
7474
else:
7575
return value

ietf/liaisons/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class LiaisonStatement(models.Model):
4040
other_identifiers = models.TextField(blank=True, null=True) # Identifiers from other bodies
4141
body = models.TextField(blank=True)
4242

43-
tags = models.ManyToManyField(LiaisonStatementTagName, blank=True)
43+
tags = models.ManyToManyField(LiaisonStatementTagName, blank=True, null=True)
4444
attachments = models.ManyToManyField(Document, through='LiaisonStatementAttachment', blank=True)
4545
state = models.ForeignKey(LiaisonStatementState, default='pending')
4646

@@ -212,7 +212,7 @@ def __unicode__(self):
212212

213213

214214
class LiaisonStatementGroupContacts(models.Model):
215-
group = models.OneToOneField(Group)
215+
group = models.ForeignKey(Group, unique=True)
216216
contacts = models.CharField(max_length=255,blank=True)
217217
cc_contacts = models.CharField(max_length=255,blank=True)
218218

ietf/mailtrigger/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def clean_duplicates(addrlist):
2222
class MailTrigger(models.Model):
2323
slug = models.CharField(max_length=32, primary_key=True)
2424
desc = models.TextField(blank=True)
25-
to = models.ManyToManyField('Recipient', blank=True, related_name='used_in_to')
26-
cc = models.ManyToManyField('Recipient', blank=True, related_name='used_in_cc')
25+
to = models.ManyToManyField('Recipient', null=True, blank=True, related_name='used_in_to')
26+
cc = models.ManyToManyField('Recipient', null=True, blank=True, related_name='used_in_cc')
2727

2828
class Meta:
2929
ordering = ["slug"]

ietf/meeting/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ class TimeSlot(models.Model):
416416
duration = TimedeltaField()
417417
location = models.ForeignKey(Room, blank=True, null=True)
418418
show_location = models.BooleanField(default=True, help_text="Show location in agenda.")
419-
sessions = models.ManyToManyField('Session', related_name='slots', through='SchedTimeSessAssignment', blank=True, help_text=u"Scheduled session, if any.")
419+
sessions = models.ManyToManyField('Session', related_name='slots', through='SchedTimeSessAssignment', null=True, blank=True, help_text=u"Scheduled session, if any.")
420420
modified = models.DateTimeField(auto_now=True)
421421
#
422422

ietf/nomcom/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# -*- coding: utf-8 -*-
22
import os
33

44
from django.db import models
@@ -205,8 +205,8 @@ def get_requirement(self):
205205
class Feedback(models.Model):
206206
nomcom = models.ForeignKey('NomCom')
207207
author = models.EmailField(verbose_name='Author', blank=True)
208-
positions = models.ManyToManyField('Position', blank=True)
209-
nominees = models.ManyToManyField('Nominee', blank=True)
208+
positions = models.ManyToManyField('Position', blank=True, null=True)
209+
nominees = models.ManyToManyField('Nominee', blank=True, null=True)
210210
subject = models.TextField(verbose_name='Subject', blank=True)
211211
comments = EncryptedTextField(verbose_name='Comments')
212212
type = models.ForeignKey(FeedbackTypeName, blank=True, null=True)

ietf/submit/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def existing_document(self):
7777
return Document.objects.filter(name=self.name).first()
7878

7979
class SubmissionCheck(models.Model):
80-
time = models.DateTimeField(auto_now=True)
80+
time = models.DateTimeField(auto_now=True, default=None) # The default is to make makemigrations happy
8181
submission = models.ForeignKey(Submission, related_name='checks')
8282
checker = models.CharField(max_length=256, blank=True)
8383
passed = models.NullBooleanField(default=False)

0 commit comments

Comments
 (0)