On Jan 20, 2:04 pm, Trevor Stanley <h...@balancingact.me.uk> wrote: > Kenneth > > That is what I originally though but if I write that this is the error I > get: > > in _get_fringe_value > ft = Fringe.objects.select_related().filter(id=self.id).values() > AttributeError: 'str' object has no attribute 'id' > > I'm in London and I do this in my spare time so have just arrived home > from work. Many thanks for looking at this for me. > >
This line isn't right: fringe_value = _get_fringe_value('aqft') Not sure what you're trying to do, if first arg to that function is self, you should use it as an instance method, e.g. detail = Detail(...) detail._get_fringe_value() If you want to pass it a second arg, change def line to accept a 2nd arg and call with: detail._get_fringe_value('aqft') -ak -- 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.