Commit 58b3caa9 authored by Ilya Simonov's avatar Ilya Simonov

fix save playlist links

parent 3075ad49
......@@ -7,7 +7,6 @@ from . import models
@receiver(post_save, sender=models.Playlist)
def save_playlist_links(sender, instance, created, **kwargs):
if created:
instance.json = f'{settings.DOMAIN_NAME}/api/playlist/{instance.id}/'
instance.mrss = f'{settings.DOMAIN_NAME}/api/playlist/{instance.id}/mrss'
instance.save()
instance.json = f'{settings.DOMAIN_NAME}/api/playlist/{instance.id}/'
instance.mrss = f'{settings.DOMAIN_NAME}/api/playlist/{instance.id}/mrss'
instance.save()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment