Beispiel #1
0
def create_favorite(mediation=None, offer=None, user=None) -> Favorite:
    favorite = Favorite()
    favorite.user = user
    favorite.mediation = mediation
    favorite.offer = offer
    return favorite
Beispiel #2
0
def create_favorite(mediation: Mediation, offer: Offer, user: User) -> Favorite:
    favorite = Favorite()
    favorite.mediation = mediation
    favorite.offer = offer
    favorite.user = user
    return favorite