Skip to content

Conversation

jishnundth
Copy link

The files serializers.py , models.py , views.py , urls.py in user are modified with Address, Transaction ,Coupon, and order .

class Meta:
model = Product
fields = ('__all__')
fields = ('__all__')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using ('__all__') is quite a bad practice while on production systems. Just refactor it with all the fieldnames like the above one.

eg :

fields=['order','amount','time_stamp_transaction']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants