Implemented editing for model instances

This commit is contained in:
2021-11-09 20:31:19 -06:00
parent 82c42e66ae
commit fa9a51509a
11 changed files with 84 additions and 21 deletions

View File

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