Skip to content

Commit 1537d0e

Browse files
committed
Update for django 3.2 compatibility
1 parent 5cfc7d2 commit 1537d0e

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

pgcommitfest/commitfest/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Migration(migrations.Migration):
8181
('filename', models.CharField(max_length=1000, blank=True)),
8282
('date', models.DateTimeField()),
8383
('author', models.CharField(max_length=500)),
84-
('ispatch', models.NullBooleanField()),
84+
('ispatch', models.BooleanField(null=True)),
8585
('mailthread', models.ForeignKey(to='commitfest.MailThread', on_delete=models.CASCADE)),
8686
],
8787
options={

pgcommitfest/commitfest/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class MailThreadAttachment(models.Model):
307307
filename = models.CharField(max_length=1000, null=False, blank=True)
308308
date = models.DateTimeField(null=False, blank=False)
309309
author = models.CharField(max_length=500, null=False, blank=False)
310-
ispatch = models.NullBooleanField()
310+
ispatch = models.BooleanField(null=True)
311311

312312
class Meta:
313313
ordering = ('-date',)

pgcommitfest/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
}
2323
}
2424

25+
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
26+
2527
# Local time zone for this installation. Choices can be found here:
2628
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
2729
# although not all choices may be available on all operating systems.

tools/commitfest/check_patches_in_archives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# We will hit the archives without delay when doing this, but that
4343
# should generally not be a problem because it's not going to be
4444
# downloading a lot...
45-
for a in MailThreadAttachment.objects.filter(ispatch=None):
45+
for a in MailThreadAttachment.objects.filter(ispatch__isnull=True):
4646
url = "/message-id/attachment/%s/attach" % a.attachmentid
4747
logging.debug("Checking attachment %s" % a.attachmentid)
4848

0 commit comments

Comments
 (0)