Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
fd248098
Commit
fd248098
authored
Apr 30, 2019
by
Guinness
Committed by
Okhin
May 02, 2019
Browse files
Fix the data import and the fixture
parent
bea08e7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/core/management/commands/import_old_rp.py
View file @
fd248098
...
...
@@ -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'
]
...
...
apps/rp/fixtures/all_articles.json
LFS
View file @
fd248098
This source diff could not be displayed because it is stored in LFS. You can
view the blob
instead.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment