Skip to content

Commit 07fc8ef

Browse files
authored
Fix incorrect initialization of Str (#8910)
* Fix incorrect initialization of Str * Drop unused import
1 parent f2d067b commit 07fc8ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/api/schema/orders.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from app.api.helpers.utilities import dasherize
77
from app.api.schema.base import GetterRelationship
8-
from app.models import db
98
from utils.common import use_defaults
109

1110

@@ -53,7 +52,7 @@ def initial_values(self, data):
5352
amount = fields.Float(validate=lambda n: n >= 0, allow_none=False, default=0)
5453
address = fields.Str(allow_none=True)
5554
city = fields.Str(allow_none=True)
56-
state = fields.Str(db.String, allow_none=True)
55+
state = fields.Str(allow_none=True)
5756
country = fields.Str(allow_none=True)
5857
zipcode = fields.Str(allow_none=True)
5958
company = fields.Str(allow_none=True)

0 commit comments

Comments
 (0)