Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bryan BRANCOTTE
django-basetheme-bootstrap
Commits
3f7331e4
Commit
3f7331e4
authored
Jul 16, 2021
by
Bryan BRANCOTTE
Browse files
302 on success
parent
e794d03c
Pipeline
#61375
passed with stage
in 1 minute and 17 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
basetheme_bootstrap/views.py
View file @
3f7331e4
...
...
@@ -232,11 +232,7 @@ def account_detail(request):
)(
instance
=
pref
,
data
=
request
.
POST
if
is_posted
else
None
)
if
is_posted
and
form_prefs
.
is_valid
():
form_prefs
.
save
()
form_prefs
=
forms
.
modelform_factory
(
klass
,
fields
=
list
(
pref
.
get_allowed_fields
()),
widgets
=
widgets_dict
,
)(
instance
=
klass
.
get_for_user
(
user
=
request
.
user
))
return
redirect
(
reverse
(
"basetheme_bootstrap:account"
))
# dirty patch for time field (don't know why django doesn't express the correct type by default)
for
f
in
form_prefs
.
fields
.
values
():
if
isinstance
(
f
.
widget
,
widgets
.
TimeInput
):
...
...
setup.py
View file @
3f7331e4
...
...
@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup
(
name
=
'django-basetheme-bootstrap'
,
version
=
'0.2.6
3
'
,
version
=
'0.2.6
4
'
,
description
=
'Django Basetheme Bootstrap'
,
long_description
=
readme
,
author
=
'Bryan Brancotte'
,
...
...
Write
Preview
Supports
Markdown
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