Commit 680375d9 authored by Mario Chirinos's avatar Mario Chirinos

bulk upload

parent 0e0c81c8
......@@ -116,7 +116,8 @@ class Command(BaseCommand):
# topic, created = Topic.objects.get_or_create(name=d['topic'])
# news.topic.add(topic)
topicstr = [d['topic']]
if len(json.dumps(topicstr)) >= 512:
print(topicstr)
news.topic_raw = json.dumps(topicstr)
# news.save()
objectsList.append(news)
......
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