> Thanks Patrick,
> 
> So, you are voting for the second model. I think Django should have
> such relationship builtin where I can avoid defining user_id as a field
> in my news table.

actually, i don´t really see a difference between model 1 and 2.
you have a company which you assign users to. the news posting is done by a
user (which automatically relates it to a company).

maybe i don't fully understand what you´re looking for but since news are
posted by a user, you need a field "user_id" for the news.

 
> I maybe wrong but I don't think (news.get_user.username) works in
> templates. I have to double check.

it does (i´m using it).

patrick

Reply via email to