chore(accounting): refactor viewset checks so they work for model AssetBase

ref: #892 #887
This commit is contained in:
2025-07-25 07:40:18 +09:30
parent 52001959d9
commit 18c1c4029e

View File

@ -77,9 +77,10 @@ class ViewSetBase:
self.view_user = User.objects.create_user(username="test_user_view", password="password")
kwargs = self.kwargs_create_item
kwargs['organization'] = organization
self.item = self.model.objects.create(
organization = organization,
**self.kwargs_create_item
**kwargs
)
self.other_org_item = self.model.objects.create(