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
M
memopol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Political Memory
memopol
Commits
edae7d86
Commit
edae7d86
authored
May 23, 2017
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shutting down csrf for now. Some mystic shit is happening in uwsgi. /spend 6h.
parent
8cc240ed
Pipeline
#1069
passed with stage
in 10 minutes and 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
src/memopol/templates/_position_form_modal.html
src/memopol/templates/_position_form_modal.html
+1
-4
src/memopol/views/home.py
src/memopol/views/home.py
+2
-2
No files found.
src/memopol/templates/_position_form_modal.html
View file @
edae7d86
...
...
@@ -13,9 +13,6 @@
</div>
<div
class=
"modal-body"
>
{% csrf_token %}
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"well well-sm text-justify"
>
{% include "text/position_info.html" %}
</div>
...
...
@@ -96,4 +93,4 @@
$
(
"
#add-position-success
"
).
modal
(
"
show
"
);
});
</script>
{% endif %}
\ No newline at end of file
{% endif %}
src/memopol/views/home.py
View file @
edae7d86
...
...
@@ -6,7 +6,7 @@ import random
from
django.db.models
import
Q
,
Count
from
django.views
import
generic
from
django.utils.decorators
import
method_decorator
from
django.views.decorators.csrf
import
csrf_
protec
t
from
django.views.decorators.csrf
import
csrf_
exemp
t
from
representatives.models
import
Chamber
,
Representative
from
representatives_positions.views
import
PositionFormMixin
...
...
@@ -22,7 +22,7 @@ class HomeView(PositionFormMixin, RepresentativeViewMixin,
generic
.
TemplateView
):
template_name
=
'home.html'
@
method_decorator
(
csrf_
protec
t
)
@
method_decorator
(
csrf_
exemp
t
)
def
dispatch
(
self
,
*
args
,
**
kwargs
):
return
super
(
HomeView
,
self
).
dispatch
(
*
args
,
**
kwargs
)
...
...
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