1 from django
.core
.management
.base
import BaseCommand
2 from mygpo
.api
.models
import Podcast
4 class Command(BaseCommand
):
5 def handle(self
, *args
, **options
):
8 print 'Usage: ./manage.py group-podcasts <url1> <url2> <group-name> <name1> <name2>'
17 p1
= Podcast
.objects
.get(url
=p1_url
)
18 p2
= Podcast
.objects
.get(url
=p2_url
)
20 p1
.group_with(p2
, group_title
, myname
, othername
)