new_subscriber = EventToSubscriber(event=event_id, subscriber=current_user)
new_subscriber.save()
class EventToSubscriber(Model):
event = models.ManyToManyField(Event, verbose_name='Событие')
subscriber = models.ManyToManyField(User, verbose_name='Подписчик')
TypeError at /subscribe/4
Direct assignment to the forward side of a many-to-many set is prohibited. Use event.set() instead.