Added edit button and forms for Players, Teams, Venues

This commit is contained in:
2021-11-07 17:01:20 -06:00
parent c7c454c696
commit 8a9a955f3a
16 changed files with 248 additions and 10 deletions

7
players/forms.py Normal file
View File

@@ -0,0 +1,7 @@
from django import forms
from .models import Player
class PlayerForm(forms.ModelForm):
class Meta:
model = Player
fields = ['first_name', 'last_name', 'jersey_number']