[scrobbles] Properly serialize location_id
This commit is contained in:
@ -824,6 +824,9 @@ class ScrobbleDetailView(DetailView):
|
||||
if data.get("platform_id", False):
|
||||
data["platform_id"] = data["platform_id"].id
|
||||
|
||||
if data.get("location_id", False):
|
||||
data["location_id"] = data["location_id"].id
|
||||
|
||||
self.object.log = data
|
||||
self.object.save(update_fields=["log"])
|
||||
return redirect(self.object.get_absolute_url())
|
||||
|
||||
Reference in New Issue
Block a user