mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-22 09:18:13 +00:00
14 lines
510 B
Python
14 lines
510 B
Python
from django.core.management.base import NoArgsCommand
|
|
from spa.models import Mix
|
|
|
|
|
|
class Command(NoArgsCommand):
|
|
def handle_noargs(self, **options):
|
|
try:
|
|
#l = Mix.objects.filter(slug='dss-on-deepvibes-radio-17th-july-jamie-o-sullivan')[0]
|
|
l = Mix.objects.filter(favourites__slug='fergalmoran')[0]
|
|
for fav in l.favourites.all():
|
|
print(fav.slug)
|
|
pass
|
|
except Exception as ex:
|
|
print("Debug exception: %s" % ex.message) |