mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 15:59:18 +02:00
use a dedicated serializer to handle library creation
This commit is contained in:
parent
0b2fe8439a
commit
3caa03aedf
7 changed files with 182 additions and 46 deletions
|
@ -137,6 +137,13 @@ class Library(models.Model):
|
|||
# should we automatically import new files from this library?
|
||||
autoimport = models.BooleanField()
|
||||
tracks_count = models.PositiveIntegerField(null=True, blank=True)
|
||||
follow = models.OneToOneField(
|
||||
Follow,
|
||||
related_name='library',
|
||||
null=True,
|
||||
blank=True,
|
||||
on_delete=models.SET_NULL,
|
||||
)
|
||||
|
||||
|
||||
class LibraryTrack(models.Model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue