Dear Rajesh, thanks for your precious help. Rajesh Dhawan scrisse: [...] > > I need to pass a model to my template and then access its > > attributes. Some of them start with an underscore, which turns out to > > be a problem for the template mechanism.
> Alternatively, create a method/property (your second solution above) > to access each one of them publically. I added a couple of methods to my models, so to access to the underscore methods/attributes but with different names. I get an error though. TemplateSyntaxError at / Caught an exception while rendering: unbound method __unicode__() must be called with Fornitore instance as first argument (got nothing instead) I put some excerpts in http://dpaste.com/75743/. Can anybody see what's missing/wrong? Thanks. > -Rajesh D All the best, Fabio. -- Fabio Natali --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

