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
intranet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nounous-archives
intranet
Commits
5185ad8d
Commit
5185ad8d
authored
Nov 03, 2015
by
Charlie Jacomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[compte] Finalistion de creat avec redirections
parent
53aa6dc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
compte/urls.py
compte/urls.py
+1
-0
compte/views.py
compte/views.py
+2
-1
No files found.
compte/urls.py
View file @
5185ad8d
...
...
@@ -12,6 +12,7 @@ urlpatterns = patterns('',
url
(
'^chgpass/$'
,
views
.
chgpass
,
name
=
'chgpass'
),
url
(
'^chgpass/(?P<ptype>club)/(?P<uid>[0-9]+)/$'
,
views
.
chgpass
,
name
=
'chgpass'
),
url
(
'^chgpass/(?P<ptype>adh)/(?P<uid>[0-9]+)/$'
,
views
.
chgpass
,
name
=
'chgpass'
),
url
(
'^chgpass/(?P<ptype>adh)/(?P<uid>[0-9]+)/(?P<next>.*)/$'
,
views
.
chgpass
,
name
=
'chgpass'
),
url
(
'^redirection/$'
,
views
.
redirection
,
name
=
'redirection'
),
url
(
'^redirection/(?P<uid>[0-9]+)/$'
,
views
.
redirection
,
name
=
'redirection'
),
url
(
'^alias/$'
,
views
.
alias
,
name
=
'alias'
),
...
...
compte/views.py
View file @
5185ad8d
...
...
@@ -655,7 +655,8 @@ class CreateCompteView(CableurMixin, View):
elif
res
:
adherent
.
create
()
messages
.
success
(
request
,
u
"""Compte crée"""
)
return
redirect
(
reverse
(
'cablage:afficher'
))
adh_url
=
reverse
(
'compte:adhesion'
,
args
=
(
u
'adh'
,
adherent
[
'aid'
][
0
]))
return
redirect
(
reverse
(
'compte:chgpass'
,
args
=
(
u
'adh'
,
adherent
[
'aid'
][
0
],
adh_url
)))
return
render
(
request
,
self
.
template_name
,
{
'form1'
:
form1
,
'form2'
:
form2
,
'form3'
:
form3
,
'confirm'
:
confirm
})
create
=
CreateCompteView
.
as_view
()
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