mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
feat: implement attachment management with upload, delete, and permission checks; update serializers and models
This commit is contained in:
parent
e0fa62c1ea
commit
94c3e3d363
15 changed files with 444 additions and 10 deletions
|
@ -25,7 +25,7 @@ class AttachmentSerializer(CustomModelSerializer):
|
|||
extension = serializers.SerializerMethodField()
|
||||
class Meta:
|
||||
model = Attachment
|
||||
fields = ['id', 'file', 'adventure', 'extension']
|
||||
fields = ['id', 'file', 'adventure', 'extension', 'name']
|
||||
read_only_fields = ['id']
|
||||
|
||||
def get_extension(self, obj):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue