add /files/ and /item_files/ API endpoints
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
j3d1 2023-07-07 19:28:17 +02:00
parent 3afeed81b3
commit d00d637dca
11 changed files with 430 additions and 33 deletions

View file

@ -0,0 +1,12 @@
from rest_framework import serializers
from authentication.models import ToolshedUser
class OwnerSerializer(serializers.ReadOnlyField):
class Meta:
model = ToolshedUser
fields = ['username', 'domain']
def to_representation(self, value):
return value.username + '@' + value.domain