Well you don't have to make the foreign key field required, that way comments belonging to guest users can have a blank foreign key
Possibly you could also create a default guest user that is assign to comments made by guest users. I generally having my application depending on the creation of some default record so I would probably go for the first option. On Dec 5, 3:14 pm, robos85 <[email protected]> wrote: > Hi, > I need to create comments system. Either guests and logged users can > comment. How can I do that? > I want to make a Foreign Key to User model but then, how to add gust's > comemnts? I could make it in 2 separate tables, but it would be nice > to have it in 1 table. > > Any ideas? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

