Commit 8ed3ea19 authored by Mario Chirinos's avatar Mario Chirinos

topic debug

parent b44eeaca
......@@ -127,7 +127,7 @@ class Command(BaseCommand):
if d['topic'] == "" or d['topic'] == None or d['topic'] ==[]:
d['topic'] = "Sin Tema"
if type(d['topic'])==list
if type(d['topic'])==list:
for t in d['topic']:
topic, created = Topic.objects.all().get_or_create(name=t)
news.topic.add(topic)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment