@@ -45,7 +45,7 @@ def collection_post(self):
4545 """Tender Award Complaint Document Upload
4646 """
4747 tender = self .request .validated ['tender' ]
48- if tender .status not in ['active.enquiries' , 'active.tendering' , 'active.auction' , 'active. qualification' , 'active.awarded' ]:
48+ if tender .status not in ['active.qualification' , 'active.awarded' ]:
4949 self .request .errors .add ('body' , 'data' , 'Can\' t add document in current tender status' )
5050 self .request .errors .status = 403
5151 return
@@ -83,7 +83,7 @@ def get(self):
8383 def put (self ):
8484 """Tender Award Complaint Document Update"""
8585 tender = self .request .validated ['tender' ]
86- if tender .status not in ['active.enquiries' , 'active.tendering' , 'active.auction' , 'active. qualification' , 'active.awarded' ]:
86+ if tender .status not in ['active.qualification' , 'active.awarded' ]:
8787 self .request .errors .add ('body' , 'data' , 'Can\' t update document in current tender status' )
8888 self .request .errors .status = 403
8989 return
@@ -114,7 +114,7 @@ def put(self):
114114 def patch (self ):
115115 """Tender Award Complaint Document Update"""
116116 tender = self .request .validated ['tender' ]
117- if tender .status not in ['active.enquiries' , 'active.tendering' , 'active.auction' , 'active. qualification' , 'active.awarded' ]:
117+ if tender .status not in ['active.qualification' , 'active.awarded' ]:
118118 self .request .errors .add ('body' , 'data' , 'Can\' t update document in current tender status' )
119119 self .request .errors .status = 403
120120 return
0 commit comments