fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of http://github.com/fnp/wolnelektury
[wolnelektury.git]
/
apps
/
suggest
/
views.py
diff --git
a/apps/suggest/views.py
b/apps/suggest/views.py
index
cd733a8
..
4ad1704
100644
(file)
--- a/
apps/suggest/views.py
+++ b/
apps/suggest/views.py
@@
-19,12
+19,10
@@
from catalogue.views import LazyEncoder
def report(request):
suggest_form = forms.SuggestForm(request.POST)
if suggest_form.is_valid():
def report(request):
suggest_form = forms.SuggestForm(request.POST)
if suggest_form.is_valid():
- author = suggest_form.cleaned_data['author']
- email = suggest_form.cleaned_data['email']
- title = suggest_form.cleaned_data['title']
+ contact = suggest_form.cleaned_data['contact']
description = suggest_form.cleaned_data['description']
description = suggest_form.cleaned_data['description']
- suggestion = Suggestion(
author=author, email=email, title=title
,
+ suggestion = Suggestion(
contact=contact
,
description=description, ip=request.META['REMOTE_ADDR'])
if request.user.is_authenticated():
suggestion.user = request.user
description=description, ip=request.META['REMOTE_ADDR'])
if request.user.is_authenticated():
suggestion.user = request.user