On 6 août, 19:32, nixlists <nixmli...@gmail.com> wrote: > Thank you so much guys, your suggestions are very helpful. Bruno,
Why, thanks... Oh, and did I suggest paying more attention to naming ?-) Sorry, couldn't resist - but from experience, good naming really makes a difference - it makes the code self-documenting so you don't have to refer to your object model or whatever to understand what's going on. Well written Python code reads (almost) like pseudo-code and *looks* as simple as possible, so if you feel your code is too complicated, then chances are there's a simpler, cleaner way to do it. To answer your last question (or, should I say, to help you find the answer by yourself): launch the interactive django/python shell, import your models, fetch a Claim instance from your db and try to follow the relationships (cf the FineManual) to see if and how you can access the related models fields. HTH -- 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.