website/src/events/forms.py

11 lines
317 B
Python
Raw Normal View History

from django import forms
2021-12-17 19:02:19 +01:00
from .models import Team
class submit_flag(forms.Form):
flag = forms.CharField(label="Flag", max_length=100)
2021-12-17 19:02:19 +01:00
class create_team(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput())
class Meta():
model = Team
fields = ('name','password')