Skip to content

Instantly share code, notes, and snippets.

@abhisuri97
Created November 27, 2017 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhisuri97/7c6b2b387bdc364e8db860e2b10deef6 to your computer and use it in GitHub Desktop.
Save abhisuri97/7c6b2b387bdc364e8db860e2b10deef6 to your computer and use it in GitHub Desktop.
@club.route('/clubs')
@login_required
@admin_required
def clubs():
"""View all registered users."""
clubs = Club.query.all()
return render_template('club/clubs.html', clubs=clubs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment