Private
Public Access
1
0

create form

This commit is contained in:
Sander Roosendaal
2022-06-22 21:34:29 +02:00
parent 4988657151
commit 6ddef33385
9 changed files with 1155 additions and 1079 deletions

View File

@@ -1,3 +1,15 @@
from django.shortcuts import render
# Create your views here.
from django.views.generic.edit import CreateView
from boatmovers.models import Athlete
class AthleteCreateView(CreateView):
model = Athlete
fields = [
'first_name',
'last_name',
'birth_year',
'gender',
'club',
]