Exemplo n.º 1
0
def add_event_organizer(event: models.Event, user: dict) -> None:
    organizer_entry = models.EventOrganizer()
    organizer_entry.event = event
    organizer_entry.user_id = user["user_id"]
    organizer_entry.user_name = user["name"]
    organizer_entry.user_email = user["email"]
    organizer_entry.save()
Exemplo n.º 2
0
def add_pending_event_organizer(event: models.Event, user_email: str) -> None:
    organizer_entry = models.EventOrganizer()
    organizer_entry.event = event
    organizer_entry.user_email = user_email
    organizer_entry.save()