2017-12-30 04:27:05 +01:00
|
|
|
from django.forms import ModelForm
|
|
|
|
from .models.profiles import Team
|
2017-12-31 22:54:35 +01:00
|
|
|
from .models.events import Event
|
2017-12-30 04:27:05 +01:00
|
|
|
|
|
|
|
class TeamForm(ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Team
|
|
|
|
fields = '__all__'
|
|
|
|
|
|
|
|
class NewTeamForm(ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Team
|
|
|
|
fields = ['name', 'country', 'spr', 'city', 'web_url', 'tz']
|
2017-12-31 22:54:35 +01:00
|
|
|
|
|
|
|
class TeamEventForm(ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Event
|
|
|
|
fields = ['name', 'start_time', 'end_time', 'summary', 'place', 'web_url', 'announce_url', 'tags']
|
|
|
|
|
|
|
|
class NewTeamEventForm(ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Event
|
|
|
|
fields = ['name', 'start_time', 'end_time', 'summary', 'place']
|
|
|
|
|