File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
- # Generated by Django 3.2.18 on 2023-02-24 16:02
1
+ # Generated by Django 3.2.18 on 2023-02-28 16:27
2
2
3
3
from django .db import migrations , models
4
4
@@ -16,6 +16,7 @@ class Migration(migrations.Migration):
16
16
field = models .BooleanField (
17
17
default = False ,
18
18
help_text = "Delisting a project removes it from Read the Docs search indexing and asks external search engines to remove it via robots.txt" ,
19
+ null = True ,
19
20
verbose_name = "Delisted" ,
20
21
),
21
22
),
@@ -25,6 +26,7 @@ class Migration(migrations.Migration):
25
26
field = models .BooleanField (
26
27
default = False ,
27
28
help_text = "Delisting a project removes it from Read the Docs search indexing and asks external search engines to remove it via robots.txt" ,
29
+ null = True ,
28
30
verbose_name = "Delisted" ,
29
31
),
30
32
),
Original file line number Diff line number Diff line change @@ -362,7 +362,11 @@ class Project(models.Model):
362
362
363
363
skip = models .BooleanField (_ ("Skip (disable) building this project" ), default = False )
364
364
365
+ # null=True can be removed in a later migration
366
+ # be careful if adding new queries on this, .filter(delisted=False) does not work
367
+ # but .exclude(delisted=True) does!
365
368
delisted = models .BooleanField (
369
+ null = True ,
366
370
default = False ,
367
371
verbose_name = _ ("Delisted" ),
368
372
help_text = _ (
You can’t perform that action at this time.
0 commit comments