◄ ► | Muuda | Home | Admin | en de fr et | Sign in

#5639 (Scrutinize UserPlan.create_user_plan)

by Sharif Mehedi · in Developers

Kokkuvõte

A user can have only one UserPlan per model (for, calling create_user_plan a second time takes out the existing plan from the database for the given user and updates it). I think this is counter intuitive. Could we have an option such as UserPlan.single_plan_only = True

And when the option is set to False, create_user_plan would not look into the database and will create a plan directly.

Children

Kommentaarid