diff --git a/migrations/899-add-websites-2.sql b/migrations/899-add-websites-2.sql new file mode 100644 index 00000000000..dd2608c5a5f --- /dev/null +++ b/migrations/899-add-websites-2.sql @@ -0,0 +1,2 @@ +ALTER TABLE `websites_website` ADD COLUMN `region_exclusions` longtext NOT NULL; +ALTER TABLE `websites_website` ADD COLUMN `devices` longtext NOT NULL; diff --git a/mkt/websites/models.py b/mkt/websites/models.py index 5ac7dd64b20..a8ec65213fc 100644 --- a/mkt/websites/models.py +++ b/mkt/websites/models.py @@ -18,11 +18,11 @@ class Website(ModelBase): short_title = TranslatedField() description = TranslatedField() keywords = models.ManyToManyField(Tag) - # FIXME regions + region_exclusions = json_field.JSONField(default=None) + devices = json_field.JSONField(default=None) categories = json_field.JSONField(default=None) icon_type = models.CharField(max_length=25, blank=True) icon_hash = models.CharField(max_length=8, blank=True) - # FIXME devices last_updated = models.DateTimeField(db_index=True, auto_now_add=True) # FIXME status