Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
rpteam
rp
Commits
7edff35b
Verified
Commit
7edff35b
authored
Apr 30, 2019
by
Guinness
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
apps/core/management/commands/import_old_rp.py
apps/core/management/commands/import_old_rp.py
+1
-1
apps/rp/fixtures/all_articles.json
apps/rp/fixtures/all_articles.json
+1
-1
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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