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
7edff35b
Verified
Commit
7edff35b
authored
Apr 30, 2019
by
Guinness
Browse files
Fix the data import and the fixture
parent
6b5e39e3
Pipeline
#2573
failed with stages
in 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/core/management/commands/import_old_rp.py
View file @
7edff35b
...
...
@@ -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 @
7edff35b
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