Removed radios and listening recording for anonymous users as it was buggy

This commit is contained in:
Eliot Berriot 2018-05-06 11:18:28 +02:00
commit 4325b1be4f
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
11 changed files with 33 additions and 98 deletions

View file

@ -55,8 +55,6 @@ class RadioSession(models.Model):
related_object = GenericForeignKey('related_object_content_type', 'related_object_id')
def save(self, **kwargs):
if not self.user and not self.session_key:
raise ValidationError('Cannot have both session_key and user empty for radio session')
self.radio.clean(self)
super().save(**kwargs)