aboutsummaryrefslogtreecommitdiffstats
path: root/ryuslash/aggregator/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ryuslash/aggregator/models.py')
-rw-r--r--ryuslash/aggregator/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ryuslash/aggregator/models.py b/ryuslash/aggregator/models.py
index 9a39600..efb6c89 100644
--- a/ryuslash/aggregator/models.py
+++ b/ryuslash/aggregator/models.py
@@ -7,6 +7,7 @@ class Feed(models.Model):
name = models.CharField(max_length=300)
base_url = models.URLField()
feed_url = models.CharField(max_length=100)
+ profile_url = models.CharField(max_length=100, blank=True)
favicon_ext = models.CharField(max_length=10, default='ico')
uses_markdown = models.BooleanField()
uses_titles = models.BooleanField()
@@ -15,6 +16,9 @@ class Feed(models.Model):
choices=[(CATEGORIES.index(c), c) for c in CATEGORIES]
)
+ def profile(self):
+ return '%s%s' % (self.base_url, self.profile_url)
+
def __unicode__(self):
return self.name