mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 14:29:42 +02:00
Now store track file mimetype in database
This commit is contained in:
parent
937c55fdd5
commit
ddea5f1825
6 changed files with 99 additions and 1 deletions
|
@ -28,7 +28,14 @@ class TrackFileSerializer(serializers.ModelSerializer):
|
|||
|
||||
class Meta:
|
||||
model = models.TrackFile
|
||||
fields = ('id', 'path', 'duration', 'source', 'filename', 'track')
|
||||
fields = (
|
||||
'id',
|
||||
'path',
|
||||
'duration',
|
||||
'source',
|
||||
'filename',
|
||||
'mimetype',
|
||||
'track')
|
||||
|
||||
def get_path(self, o):
|
||||
url = o.path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue