Commit b44eeaca authored by Mario Chirinos's avatar Mario Chirinos

topic debug

parent 27973036
......@@ -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