Permalink
Browse files

Fixing bug around missing feed links being checked for length.

  • Loading branch information...
1 parent 4489f1a commit 320ceb87fdd10fa659585acaf1ac989d0c70e2f1 @samuelclay committed Apr 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 apps/rss_feeds/models.py
View
@@ -134,11 +134,11 @@ def save(self, *args, **kwargs):
if len(self.feed_title) > max_feed_title:
self.feed_title = self.feed_title[:max_feed_title]
max_feed_address = Feed._meta.get_field('feed_address').max_length
- if len(self.feed_address) > max_feed_address:
- self.feed_address = self.feed_address[:max_feed_address]
+ if len(feed_address) > max_feed_address:
+ self.feed_address = feed_address[:max_feed_address]
max_feed_link = Feed._meta.get_field('feed_link').max_length
- if len(self.feed_link) > max_feed_link:
- self.feed_link = self.feed_link[:max_feed_link]
+ if len(feed_link) > max_feed_link:
+ self.feed_link = feed_link[:max_feed_link]
try:
super(Feed, self).save(*args, **kwargs)

0 comments on commit 320ceb8

Please sign in to comment.