Routes error with django models migrations -
i have file named routes.py have
router.register('orders', orderviewset, 'order')
if comment don't have problems migrations, in production, , boss cannot comment every time want migrate.
in te serializer.py have this:
class orderserializer(serializers.modelserializer): buyer_obj = serializers.serializermethodfield() #items = productserializer(many=true, read_only=true) class meta: model = order fields = ('id', 'url', 'buyer', 'items', 'store', 'buyer_obj', 'browser_ip', 'currency', 'enabled', 'financial_status', 'gateway', 'total_amount')
the error next:
django.db.utils.operationalerror: (1054), "unkown column 'orders_order.currency' in 'field list'")
please exist form migrate that? thank you.
Comments
Post a Comment