lglog/lg/views.py
Yohann D'ANELLO b4fd13a897
stash
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-01-28 22:12:35 +01:00

14 lines
347 B
Python

from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import FormView
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