diff options
Diffstat (limited to 'commcrawler/models.py')
-rw-r--r-- | commcrawler/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commcrawler/models.py b/commcrawler/models.py index b520b09..ca26ec1 100644 --- a/commcrawler/models.py +++ b/commcrawler/models.py @@ -18,7 +18,10 @@ class ExludedDomains(models.Model): verbose_name_plural = _("Excluded domains") def __str__(self): - return self.url + return self.domain + + def natural_key(self): + return self.domain class Crawl(models.Model): |