Commit 540fe106 authored by okhin's avatar okhin 🚴

Merge branch '44-l-import-des-donnees-est-incompatible-avec-le-modele-django-actuel' into 'rp2'

Resolve "L'import des données est incompatible avec le modèle django actuel"

Closes #44

See merge request !33
parents 8dac2f43 514c39a0
Pipeline #2584 passed with stages
in 3 minutes and 8 seconds
......@@ -63,7 +63,7 @@ class Command(BaseCommand):
# Fetch the article, or creates it
article = Article.add_new_url(url=item['url'])
if item['lang'] != "":
article.lang = item['lang']
article.lang = item['lang'].upper()
article.published_at = item['date_publi']
article.title = item['title']
......
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
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