Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
add regions/devices for websites
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Short committed Mar 25, 2015
1 parent 25dc5d8 commit 0889736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions 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;
4 changes: 2 additions & 2 deletions mkt/websites/models.py
Expand Up @@ -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

Expand Down

0 comments on commit 0889736

Please sign in to comment.