Update migration order and change loa to loas
This commit is contained in:
@@ -29,7 +29,7 @@ class KOReviewForm(CacheableForm):
|
||||
number = StringField(
|
||||
translate("forms.ko_review.to_number"), validators=[Length(min=10)]
|
||||
)
|
||||
loa = FieldList(
|
||||
loas = FieldList(
|
||||
StringField(
|
||||
translate("forms.ko_review.loa"), validators=[Length(min=10), IsNumber()]
|
||||
)
|
||||
@@ -43,5 +43,5 @@ class KOReviewForm(CacheableForm):
|
||||
@property
|
||||
def data(self):
|
||||
_data = super(FlaskForm, self).data
|
||||
_data["loa"] = [n for n in _data["loa"] if n not in self.EMPTY_LOA]
|
||||
_data["loas"] = [n for n in _data["loas"] if n not in self.EMPTY_LOA]
|
||||
return _data
|
||||
|
@@ -90,7 +90,7 @@ class TaskOrder(Base, mixins.TimestampsMixin):
|
||||
pdf_attachment_id = Column(ForeignKey("attachments.id"))
|
||||
_pdf = relationship("Attachment", foreign_keys=[pdf_attachment_id])
|
||||
number = Column(String, unique=True) # Task Order Number
|
||||
loa = Column(ARRAY(String)) # Line of Accounting (LOA)
|
||||
loas = Column(ARRAY(String)) # Line of Accounting (LOA)
|
||||
custom_clauses = Column(String) # Custom Clauses
|
||||
signer_dod_id = Column(String)
|
||||
signed_at = Column(DateTime)
|
||||
|
Reference in New Issue
Block a user