What exactly are your models? If you are using a ManyToMany fields you could do it Rating.objects.get(user=request.user) and see if that returns anything.
Cheers, Ryan On Jul 19, 10:06 am, The Danny Bos <danny...@gmail.com> wrote: > Hey there, this should be easy, but my code just won't play along. > > I've let a logged in user Rate a music record. I'm saving it like so > 'rating | user | record'. (Rating model) > What I need to do is only display the Rating form if the logged in > user hasn't rated the record yet, know what I mean. > > What code would I need to check that? > I'm still new, albeit I feel I've read every book on the subject > twice. > > d --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---