2021-01-28 21:12:35 +00:00
|
|
|
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
|
|
from django.views.generic import FormView
|
2020-11-15 18:27:18 +00:00
|
|
|
|
2021-01-28 21:12:35 +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
|