lglog/lg/views.py

14 lines
347 B
Python
Raw Permalink Normal View History

from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import FormView
2020-11-15 18:27:18 +00:00
from lg.forms import PlayerForm
class NewPlayerView(LoginRequiredMixin, FormView):
form_class = PlayerForm
template_name = "lg/new_payer.html"
def form_valid(self, form):
user = form.cleaned_data["user"]
class_name