14 lines
383 B
Python
14 lines
383 B
Python
|
|
from django.views.generic import TemplateView, ListView, DetailView
|
|
from django.views.generic.edit import CreateView
|
|
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
|
|
from guild.models import Player
|
|
|
|
|
|
class CreatePlayerView(LoginRequiredMixin, CreateView):
|
|
model = Player
|
|
fields = ["name"]
|
|
|
|
class PlayerDetailView(LoginRequiredMixin, DetailView):
|
|
model = Player |