/admin/teams?field=id&q=%27+or+1%3D%3D1+--
yields a type error
```Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/sotb/CTFd/CTFd/utils.py", line 285, in decorated_function
return f(*args, **kwargs)
File "/sotb/CTFd/CTFd/admin/teams.py", line 35, in admin_teams_view
return render_template('admin/teams.html', teams=teams, pages=None, curr_page=None, q=q, field=field)
File "/usr/local/lib/python3.5/dist-packages/flask/templating.py", line 134, in render_template
context, ctx.app)
File "/usr/local/lib/python3.5/dist-packages/flask/templating.py", line 116, in _render
rv = template.render(context)
File "/home/shyft/.local/lib/python3.5/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/home/shyft/.local/lib/python3.5/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/shyft/.local/lib/python3.5/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/sotb/CTFd/CTFd/themes/admin/templates/teams.html", line 1, in top-level template code
{% extends "admin/base.html" %}
File "/sotb/CTFd/CTFd/themes/admin/templates/base.html", line 67, in top-level template code
{% block content %}
File "/sotb/CTFd/CTFd/themes/admin/templates/teams.html", line 189, in block "content"
{% if pages > 1 %}
TypeError: unorderable types: NoneType() > int()
```