Permalink
Browse files

The last commit didn't actually fix the bug. This one does.

  • Loading branch information...
1 parent 1404aff commit 4364114d8a71756333e3f22af70551b0922e35db @adieu adieu committed Jun 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bookmarks/models.py
View
@@ -67,7 +67,7 @@ class BookmarkInstance(models.Model):
tags = TaggableManager()
def save(self, force_insert=False, force_update=False):
- if hasattr(self, 'url'):
+ if getattr(self, 'url', None):
try:
bookmark = Bookmark.objects.get(url=self.url)
except Bookmark.DoesNotExist:

0 comments on commit 4364114

Please sign in to comment.