Skip to content

Commit

Permalink
Merge pull request #1 from RetroAsh/challenges2
Browse files Browse the repository at this point in the history
WTF - imports wtforms and Flask.ext.wtf corrections
  • Loading branch information
Hass-n committed Jul 2, 2015
2 parents 4b21ebb + 1dc510f commit 0da2f9e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion web/challenges.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
from ast import literal_eval
from flask import request, render_template, redirect, url_for, flash
from flask.ext import login
from wtforms import Form, HiddenField, validators, TextField, TextAreaField, SelectField
from flask.ext.wtf import Form
from wtforms import HiddenField, validators, TextField, TextAreaField, SelectField
from web.database import Challenge, Category, Tag
from web import webapp
from web import webdb as db
Expand Down
2 changes: 1 addition & 1 deletion web/config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ SECRET_KEY = 'secret'
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/webapp.db'
SQLALCHEMY_ECHO = True
# WTF
CSRF_ENABLED = True
WTF_CSRF_ENABLED = True
3 changes: 2 additions & 1 deletion web/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import hashlib
import time
from flask import request, render_template, redirect, url_for, flash
from wtforms import Form, TextField, validators, PasswordField
from flask.ext.wtf import Form
from wtforms import TextField, validators, PasswordField
from flask.ext import login
from web import webapp
from web import webdb as db
Expand Down
3 changes: 2 additions & 1 deletion web/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from sets import Set
from flask import request, render_template
from flask.ext import login
from wtforms import Form, TextField, SelectField
from flask.ext.wtf import Form
from wtforms import TextField, SelectField
from web.database import Category, Challenge
from web import webapp
from web import webdb as db
Expand Down
3 changes: 2 additions & 1 deletion web/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

from flask import request, render_template, url_for, redirect, flash
from flask.ext import login
from wtforms import Form, PasswordField, validators
from flask.ext.wtf import Form
from wtforms import PasswordField, validators
from web import webapp
from web import webdb as db
from database import User, Challenge
Expand Down

0 comments on commit 0da2f9e

Please sign in to comment.