add /files/ and /item_files/ API endpoints
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3afeed81b3
commit
d00d637dca
11 changed files with 430 additions and 33 deletions
12
backend/authentication/serializers.py
Normal file
12
backend/authentication/serializers.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue