mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-09 16:15:12 +02:00
PEP-8 fixes
This commit is contained in:
@ -46,7 +46,7 @@ def vote(request, item):
|
||||
item = get_object_or_404(KBItem, pk=item)
|
||||
vote = request.GET.get('vote', None)
|
||||
if vote in ('up', 'down'):
|
||||
if request.user not in item.voted_by:
|
||||
if request.user not in item.voted_by:
|
||||
|
||||
item.votes += 1
|
||||
if vote == 'up':
|
||||
|
Reference in New Issue
Block a user