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
radiopanik
panikdb
Commits
af527ac7
Commit
af527ac7
authored
Aug 30, 2013
by
fred
Browse files
load-from-spip: keep old article id in episode slug, for unicity
parent
3095e2b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikdb/emissions/management/commands/load-from-spip.py
View file @
af527ac7
...
...
@@ -401,7 +401,7 @@ class Command(BaseCommand):
possible_slugs
=
[
article
.
url
.
lower
()]
if
article
.
url
.
lower
().
startswith
(
'nouvel-article'
):
possible_slugs
.
append
(
slugify
(
unicode
(
article
.
titre
)))
possible_slugs
.
append
(
slugify
(
unicode
(
article
.
titre
))
+
'-%s'
%
article
.
id_article
)
for
slug
in
possible_slugs
:
try
:
...
...
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