Skip to content

Commit

Permalink
Merge pull request #801 from readthedocs/davidfischer/fix-isproxy-mig…
Browse files Browse the repository at this point in the history
…ration

Fix the isproxy migration to be nullable
  • Loading branch information
davidfischer authored Oct 27, 2023
2 parents b9a8272 + 9a4a3de commit 72dc7b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions adserver/migrations/0089_paid_eligible_isproxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.4 on 2023-10-16 21:31
# Generated by Django 4.2.4 on 2023-10-27 19:36
from django.db import migrations
from django.db import models

Expand All @@ -13,7 +13,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="click",
name="is_proxy",
field=models.BooleanField(default=False),
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="click",
Expand All @@ -27,7 +27,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="offer",
name="is_proxy",
field=models.BooleanField(default=False),
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="offer",
Expand All @@ -41,7 +41,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="view",
name="is_proxy",
field=models.BooleanField(default=False),
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="view",
Expand Down
2 changes: 1 addition & 1 deletion adserver/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2457,7 +2457,7 @@ class AdBase(TimeStampedModel, IndestructibleModel):

is_bot = models.BooleanField(default=False)
is_mobile = models.BooleanField(default=False)
is_proxy = models.BooleanField(default=False)
is_proxy = models.BooleanField(default=None, blank=True, null=True)
is_refunded = models.BooleanField(default=False)

impression_type = None
Expand Down

0 comments on commit 72dc7b1

Please sign in to comment.