Fix pep8 errors

This commit is contained in:
Jan Tuomi
2017-09-20 23:27:09 +03:00
parent 5d1238c23d
commit 0b779c4799
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -8,4 +8,4 @@ class OhlhafvForm(forms.ModelForm):
class Meta:
model = OhlhafvChallenge
fields = ['challenger', 'challenger_email', 'victim', 'victim_email', 'series', 'message']
fields = ['challenger', 'challenger_email', 'victim', 'victim_email', 'series', 'message']
+1 -1
View File
@@ -120,7 +120,7 @@ class Official(User):
phone_number = PhoneNumberField(_('Phone number'))
#Ohlhafv
# Ohlhafv
class OhlhafvChallenge(models.Model):
'''
Model containing all info about ohlhafv challenge
+1 -1
View File
@@ -5,4 +5,4 @@ from webapp.models import OhlhafvChallenge
class OhlhafvTable(tables.Table):
class Meta:
model = OhlhafvChallenge
model = OhlhafvChallenge
+1 -1
View File
@@ -21,7 +21,7 @@ urlpatterns = [
# git revision
url(r'^about', about_view),
#ohlhafv
# ohlhafv
url(r'^ohlhafv$', ohlhafv_view),
url(r'^ohlhafv/submit', ohlhafv_submit),
url(r'^ohlhafv/list', ohlhafv_list),
+2 -2
View File
@@ -66,10 +66,10 @@ def ohlhafv_submit(request, *args, **kwargs):
form = OhlhafvForm(request.POST)
if form.is_valid():
form.save()
#return HttpResponseRedirect('/list/')
# return HttpResponseRedirect('/list/')
else:
pass
#return render(request, 'error.html', {'error': form.errors})
# return render(request, 'error.html', {'error': form.errors})
return HttpResponseRedirect('/ohlhafv/list/')