Sorry :o) My fault. I was testing on the wrong site :o) It works perfect with this:
def render(self, context): try: context[self.varname] = Blog.objects.get(user=self.user) except ObjectDoesNotExist: return "" Thanks alot for your help :o) Have a nice night On 26 Aug., 14:58, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Aug 26, 1:51 pm, MIL <needb...@gmail.com> wrote: > > > Okay. Seems logic. But Im not sure what I should do. > > > So what would you do? > > > Thanks > > Add return "" at the end of your render() method. > -- > DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---