Fix pep8 errors
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -5,4 +5,4 @@ from webapp.models import OhlhafvChallenge
|
||||
|
||||
class OhlhafvTable(tables.Table):
|
||||
class Meta:
|
||||
model = OhlhafvChallenge
|
||||
model = OhlhafvChallenge
|
||||
|
||||
+1
-1
@@ -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
@@ -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/')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user