1. Made location optional, 2. Added multicountry select option, 3.
Improved form labels, help texts and templates.
This commit is contained in:
@@ -82,10 +82,11 @@ class Event(models.Model):
|
||||
course_goal_6 = models.TextField(blank=True)
|
||||
|
||||
# LocationForm
|
||||
country = CountryField()
|
||||
country = CountryField(countries=choices.CountryChoiceSet)
|
||||
terrain = models.CharField(max_length=choices.CHOICE_FIELD_MAX_LENGTH,
|
||||
choices=choices.TERRAIN_CHOICES)
|
||||
location = models.CharField(max_length=config.LOCATION_MAX_LENGTH)
|
||||
location = models.CharField(max_length=config.LOCATION_MAX_LENGTH,
|
||||
blank=True)
|
||||
|
||||
# ApproachForm
|
||||
transport = models.CharField(max_length=choices.CHOICE_FIELD_MAX_LENGTH,
|
||||
@@ -308,8 +309,7 @@ class Event(models.Model):
|
||||
'course_goal_4': self.course_goal_4,
|
||||
'course_goal_5': self.course_goal_5,
|
||||
'course_goal_6': self.course_goal_6,
|
||||
'requirements': self.requirements,
|
||||
'equipment': self.equipment,
|
||||
'country': self.country,
|
||||
'location': self.location,
|
||||
'basecamp': self.basecamp,
|
||||
'accommodation': self.accommodation,
|
||||
@@ -321,13 +321,15 @@ class Event(models.Model):
|
||||
'meeting_time': self.meeting_time,
|
||||
'meeting_point': self.meeting_point,
|
||||
'meeting_point_other': self.meeting_point_other,
|
||||
'requirements': self.requirements,
|
||||
'equipment': self.equipment,
|
||||
'pre_meeting_1': self.pre_meeting_1,
|
||||
'pre_meeting_2': self.pre_meeting_2,
|
||||
'deadline': self.deadline,
|
||||
'min_participants': self.min_participants,
|
||||
'max_participants': self.max_participants,
|
||||
'charge': self.charge,
|
||||
'additional_costs': self.additional_costs,
|
||||
'deadline': self.deadline,
|
||||
'trainer_firstname': self.trainer_firstname,
|
||||
'trainer_familyname': self.trainer_familyname,
|
||||
'trainer_email': self.trainer_email,
|
||||
|
||||
Reference in New Issue
Block a user