Commit 9bb565bc authored by David Haynes's avatar David Haynes 🙆
Browse files

Merge branch '63-facility-note' into '2.1-dev'

Add optional note field to Facility

See merge request srct/whats-open!33
parents ad3fbe7f 626910bb
Pipeline #1732 passed with stage
in 1 minute and 38 seconds
......@@ -29,7 +29,7 @@ class FacilityAdmin(admin.ModelAdmin):
(None, {
'fields': ('facility_name', 'logo', 'facility_category', 'facility_location',
'main_schedule', 'special_schedules',
'facility_product_tags', 'tapingo_url', 'owners'),
'facility_product_tags', 'tapingo_url', 'note', 'owners'),
......@@ -106,6 +106,11 @@ class Facility(TimeStampedModel):
facility_location = models.ForeignKey('Location',
# A note that can be left on a Facility to provide some additional
# information.
note = models.TextField('Facility Note', blank=True,
help_text="Additional information that is sent with this Facility.")
# A link to the logo image for this Facility
logo = models.URLField('Logo URL', blank=True,
......@@ -95,6 +95,6 @@ class FacilitySerializer(serializers.HyperlinkedModelSerializer):
model = Facility
# List the fields that we are serializing
fields = ('slug', 'facility_name', 'logo', 'facility_location', 'facility_category',
'facility_product_tags', 'tapingo_url',
'facility_product_tags', 'tapingo_url', 'note',
'main_schedule', 'special_schedules',
'modified', )
......@@ -365,6 +365,7 @@ class FacilityViewSet(viewsets.ReadOnlyModelViewSet):
# Category fields
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment