fixed error in serialier change ofr product search

This commit is contained in:
Sam
2021-02-26 11:52:17 +00:00
parent 0f7af9c0fb
commit fb2da7d2cf
3 changed files with 4 additions and 2 deletions

View File

@@ -311,6 +311,8 @@ class ProductViewSetTest(APITestCase):
# Assert instance has been modified
for key in data:
if key == 'company':
continue
self.assertEqual(data[key], response.data[key])
def test_auth_user_cannot_modify_other_users_instance(self):