Skip to content

Commit

Permalink
Quick hack to disable spammers
Browse files Browse the repository at this point in the history
See #852.
  • Loading branch information
malemburg committed Nov 27, 2015
1 parent 4052ddf commit 9c949d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jobs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,11 @@ def form_valid(self, form):
# Associate Job to user if they are logged in
if self.request.user.is_authenticated():
form.instance.creator = self.request.user
return super().form_valid(form)
else:
# Temporary measure against spammers
return super().form_invalid(form)
return super().form_valid(form)



class JobEdit(JobMixin, UpdateView):
Expand Down

0 comments on commit 9c949d3

Please sign in to comment.