On 30 jan, 08:16, Kirill wrote:
> Hello all!
>
> I have some logic problem I really don't understand how make model
> for this task:
>
> I have registered users (i want to use User class).
> Each registered user can create project (or group or blog) where he
> can invite
I'm guessing that you might have tried to do a ForeignKey(User) for
the other_invited. If that is the case, then I think you need to add
a related_name e.g. ForeignKey(User,
related_name="group_invited_to"). You may have to do a related name
for the creator as well.
I hope that helps.
On Jan
Hello all!
I have some logic problem I really don't understand how make model
for this task:
I have registered users (i want to use User class).
Each registered user can create project (or group or blog) where he
can invite another users
So, how it's better to do model ?
3 matches
Mail list logo