Skip to content

Commit

Permalink
Make facility approval/rejection comment optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarika committed Mar 9, 2016
1 parent 9f878f6 commit 85ce071
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions facilities/migrations/0005_auto_20160309_1402.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('facilities', '0004_auto_20160204_0656'),
]

operations = [
migrations.AlterField(
model_name='facilityapproval',
name='comment',
field=models.TextField(null=True, blank=True),
),
]
2 changes: 1 addition & 1 deletion facilities/models/facility_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ class FacilityApproval(AbstractBase):
The user who approves a facility will be the same as the created_by field.
"""
facility = models.ForeignKey(Facility)
comment = models.TextField()
comment = models.TextField(null=True, blank=True)
is_cancelled = models.BooleanField(
default=False, help_text='Cancel a facility approval'
)
Expand Down
1 change: 1 addition & 0 deletions facilities/templates/facility_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ <h4 class="font-arial fs-20">
<h4 class="font-arial fs-20">
Location
</h4>
<br><br>
<div style="padding: 2px; margin-top: -35px;">

<p style="margin-top: -10px;">
Expand Down

0 comments on commit 85ce071

Please sign in to comment.