mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Merge branch 'master' into social
* master: Adding handler to to_json calls on all serialized models.
This commit is contained in:
commit
efc31c01b6
1 changed files with 7 additions and 0 deletions
|
@ -1265,6 +1265,13 @@ class DuplicateFeed(models.Model):
|
|||
|
||||
def __unicode__(self):
|
||||
return "%s: %s" % (self.feed, self.duplicate_address)
|
||||
|
||||
def to_json(self):
|
||||
return {
|
||||
'duplicate_address': self.duplicate_address,
|
||||
'duplicate_feed_id': self.duplicate_feed_id,
|
||||
'feed_id': self.feed.pk
|
||||
}
|
||||
|
||||
def merge_feeds(original_feed_id, duplicate_feed_id, force=False):
|
||||
from apps.reader.models import UserSubscription
|
||||
|
|
Loading…
Add table
Reference in a new issue