('filename', models.CharField(max_length=1000, blank=True)),
('date', models.DateTimeField()),
('author', models.CharField(max_length=500)),
- ('ispatch', models.NullBooleanField()),
+ ('ispatch', models.BooleanField(null=True)),
('mailthread', models.ForeignKey(to='commitfest.MailThread', on_delete=models.CASCADE)),
],
options={
filename = models.CharField(max_length=1000, null=False, blank=True)
date = models.DateTimeField(null=False, blank=False)
author = models.CharField(max_length=500, null=False, blank=False)
- ispatch = models.NullBooleanField()
+ ispatch = models.BooleanField(null=True)
class Meta:
ordering = ('-date',)
}
}
+DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
+
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# We will hit the archives without delay when doing this, but that
# should generally not be a problem because it's not going to be
# downloading a lot...
- for a in MailThreadAttachment.objects.filter(ispatch=None):
+ for a in MailThreadAttachment.objects.filter(ispatch__isnull=True):
url = "/message-id/attachment/%s/attach" % a.attachmentid
logging.debug("Checking attachment %s" % a.attachmentid)