14 lines
347 B
Python
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
|