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
Political Memory
memopol
Commits
9bf87cb4
Commit
9bf87cb4
authored
Dec 12, 2015
by
Jamesie Pic
Browse files
Do not link to proposal
Admins don't have permission anyway.
parent
6b5d80fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
votes/admin.py
View file @
9bf87cb4
...
@@ -37,7 +37,7 @@ class RecommendationsAdmin(admin.ModelAdmin):
...
@@ -37,7 +37,7 @@ class RecommendationsAdmin(admin.ModelAdmin):
return
link_to_edit
(
self
,
'proposal'
)
return
link_to_edit
(
self
,
'proposal'
)
link_to_proposal
.
allow_tags
=
True
link_to_proposal
.
allow_tags
=
True
list_display
=
(
'id'
,
'title'
,
link_to_
proposal
,
'recommendation'
,
'weight'
)
list_display
=
(
'id'
,
'title'
,
'
proposal
'
,
'recommendation'
,
'weight'
)
search_fields
=
(
'title'
,
'recommendation'
,
'proposal'
)
search_fields
=
(
'title'
,
'recommendation'
,
'proposal'
)
form
=
ac
.
modelform_factory
(
Recommendation
,
exclude
=
[])
form
=
ac
.
modelform_factory
(
Recommendation
,
exclude
=
[])
...
...
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