summaryrefslogtreecommitdiff
path: root/commcrawler/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'commcrawler/models.py')
-rw-r--r--commcrawler/models.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/commcrawler/models.py b/commcrawler/models.py
index 0050ad8..f3e3246 100644
--- a/commcrawler/models.py
+++ b/commcrawler/models.py
@@ -6,6 +6,17 @@ from django.utils.translation import ugettext_lazy as _
from commorganization.models import Target
+class ExludedDomains(models.Model):
+ url = models.URLField(verbose_name=_("URL"), unique=True)
+
+ class Meta:
+ verbose_name = _("Excluded domain")
+ verbose_name_plural = _("Excluded domains")
+
+ def __str__(self):
+ return self.url
+
+
class Crawl(models.Model):
STATUS = (
('C', _("Created")), ('P', _("In progress")),