You might want to use some logic involving anonymous users. See here: http://docs.djangoproject.com/en/dev/topics/auth/#anonymous-users
On Sun, Dec 5, 2010 at 2:29 PM, andy <flowar...@gmail.com> wrote: > 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 <prog...@gmail.com> 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 django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.