Re: inclusion_tag argument missing

2011-01-14 Thread marco carminati
see http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ you should use the 'context' parameter. from link "Sometimes, your inclusion tags might require a large number of arguments, making it a pain for template authors to pass in all the arguments and remember their order. To solve t

Re: performance fields in forms.py (province/city problem)

2011-01-13 Thread marco carminati
(or on a blog)? > > On Jan 13, 1:31 pm, marco carminati wrote: > > > solved. > > thank you all > > > On Jan 12, 8:59 pm, marco carminati wrote: > > > > Dear all, > > > i'm trying to improve the performance during the modify of one of my &

Re: performance fields in forms.py (province/city problem)

2011-01-13 Thread marco carminati
solved. thank you all On Jan 12, 8:59 pm, marco carminati wrote: > Dear all, > i'm trying to improve the performance during the modify of one of my > models' > > I've the classic province and city structure. > > In the 'insert form', using jquery, I

Re: Javascript Questions

2011-01-12 Thread marco carminati
> the onchange event and it does not seem to work. So is there anyway to > find out what event(s) are fired by the dropdown box so my code works? if you active the console in firebug you could see anything.. you could always put an alert('hello') in your javascript code > Is it legal to code mul

Re: Generate a unique username for django.contrib.auth

2011-01-12 Thread marco carminati
Hi Micah On Jan 12, 10:11 pm, Micah Carrick wrote: > I've got my site's authentication working with and email and password > only--no username (thanks to Shawn Milochik for helping me with that). > However, I still need to put in a username to make the User model happy. I > was hoping to have "us

performance fields in forms.py (province/city problem)

2011-01-12 Thread marco carminati
Dear all, i'm trying to improve the performance during the modify of one of my models' I've the classic province and city structure. In the 'insert form', using jquery, I can update the city queryset after the user choice the province. In the 'update form', I would like to set the city's queryse