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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -