-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #919 from readthedocs/migrate-jsonfield
Migrate JSONField to Django builtin JSONField
- Loading branch information
Showing
8 changed files
with
183 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 5.0.8 on 2024-09-30 21:04 | ||
|
||
import adserver.analyzer.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("adserver_analyzer", "0007_add_advertiser_flights"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="analyzedadvertiserurl", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
validators=[adserver.analyzer.validators.KeywordsValidator()], | ||
verbose_name="Keywords for this URL", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="analyzedurl", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
validators=[adserver.analyzer.validators.KeywordsValidator()], | ||
verbose_name="Keywords for this URL", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# Generated by Django 5.0.8 on 2024-09-30 21:04 | ||
|
||
import adserver.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("adserver", "0096_simple_history_upgrade"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="click", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, null=True, verbose_name="Keyword targeting for this view" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="flight", | ||
name="targeting_parameters", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
validators=[adserver.validators.TargetingParametersValidator()], | ||
verbose_name="Targeting parameters", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="flight", | ||
name="traffic_cap", | ||
field=models.JSONField( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
validators=[adserver.validators.TrafficFillValidator()], | ||
verbose_name="Traffic cap", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="flight", | ||
name="traffic_fill", | ||
field=models.JSONField( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
validators=[adserver.validators.TrafficFillValidator()], | ||
verbose_name="Traffic fill", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalflight", | ||
name="targeting_parameters", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
validators=[adserver.validators.TargetingParametersValidator()], | ||
verbose_name="Targeting parameters", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalflight", | ||
name="traffic_cap", | ||
field=models.JSONField( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
validators=[adserver.validators.TrafficFillValidator()], | ||
verbose_name="Traffic cap", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalflight", | ||
name="traffic_fill", | ||
field=models.JSONField( | ||
blank=True, | ||
default=None, | ||
null=True, | ||
validators=[adserver.validators.TrafficFillValidator()], | ||
verbose_name="Traffic fill", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="offer", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, null=True, verbose_name="Keyword targeting for this view" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="region", | ||
name="prices", | ||
field=models.JSONField( | ||
blank=True, | ||
help_text="Topic pricing matrix for this region", | ||
null=True, | ||
validators=[adserver.validators.TopicPricingValidator()], | ||
verbose_name="Topic prices", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="view", | ||
name="keywords", | ||
field=models.JSONField( | ||
blank=True, null=True, verbose_name="Keyword targeting for this view" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters