Re: Django-cart. How to run method add_to_cart?

2013-10-01 Thread Ricardo Kamada
Leonardo Hi thanks for the reply but I still can not understand. I really need to pass the id and quantity parameters in the url? After all I'm recording the items in the correct session? I saw that the method has no return add_to_cart, as well as other methods remove_from_cart. In my template I am

Re: Django-cart. How to run method add_to_cart?

2013-10-01 Thread Ricardo Kamada
add_to_cart() view. > > Let me know if it comes to life =) > > Cheers, > Leo > > > > Leonardo Giordani > Author of The Digital Cat <http://lgiordani.github.com> > My profile on About.me <http://about.me/leonardo.giordani> - My GitHub > page <https:/

Re: Django-cart. How to run method add_to_cart?

2013-10-03 Thread Ricardo Kamada
to ask more if you need help. > > Cheers, > > Leo > > > Leonardo Giordani > Author of The Digital Cat <http://lgiordani.github.com> > My profile on About.me <http://about.me/leonardo.giordani> - My GitHub > page <https://github.com/lgiordani> - My Coderwall &g

Re: Call method of the session template

2013-10-10 Thread Ricardo Kamada
I tried numerous times ... but if I put that way {% 'item.remove_single' item.product %} or {% 'item.remove_single' product= item.product %} blames this error " Invalid block tag: ''item.remove_single'', expected 'empty' ou 'endfor' " Ricardo 2013/10/10 Bill Freeman > The remove method require

Re: Call method of the session template

2013-10-11 Thread Ricardo Kamada
I understand what you say, however I know only call methods using {% url 'app.view.func'%} or {%}% app.view.func. As I understand this django-aap carton, the shopping cart in the session live. If it is in session I would have access their methods and attributes. Well that's exactly what I'm not get

list of presence in django admin

2013-11-05 Thread Ricardo Kamada
Hi I have an app subscriptions for events all working ok. Admin on inscriptions that have a list_display ta displaying: | Name | events | email | phone | city | Now for me to make a call list with: | Name | events | __ signature of the person___ | what better way to do it using the django admin

clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Ricardo Kamada
Hi, I'm trying to do in list_display a link to open in new tab list_display with results of my queryset. http://dpaste.com/1445232/ that way I get this error reverse Reverse for 'evento.views.lista' with arguments '(,)' and keyword arguments '{}' not found. Could someone help me? I do not underst

Re: clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Ricardo Kamada
hich makes it hard to answer. >> >> At a guess, the url specifies a %d parameter, you are passing it an >> object. Pass it self.evento.id >> >> Cheers >> >> Tom >> >> On Wed, Nov 6, 2013 at 5:15 PM, Ricardo Kamada >> wrote: >> &

notifications PagSeguro

2013-11-15 Thread Ricardo Kamada
Hi. I am using the api Rafael PagSeguro to do here. And to a problem in the notification. the URL is correct and accessible, and I'm not doing these tests on localhost. I put a print function .. but I can not see. But I think that the code PagSeguro sends a POST is not coming ... Can anyone help m

Signal does not run

2013-11-18 Thread Ricardo Kamada
Hi. I have a problem in the signal, because it fails to run. The print "Hello word" is not displayed. Can anyone help me identify my mistake? Thanks from djpg.signals import transaction_paid def on_paid(sender, **kwargs): transaction = kwargs.pop('transaction') ref = transaction['reference'] print

Does not generate the password hash my User

2013-12-05 Thread Ricardo Kamada
I have a model "Cliente" and in it a field "password". In forms.py file, I am using ModelForm, but put in the password field Password = forms.CharField (widget = forms.PasswordInput (render_value = True)) It turns out that the admin password field appears readable, and I do not want that to happen.

Re: Does not generate the password hash my User

2013-12-09 Thread Ricardo Kamada
Thanks for the reply Jérôme. Know what it says but said if I just edit the save of the form () i lose the login form because the save () the model User.objects.create_user (self.email, self.email, self.password) Ricardo Ricardo 2013/12/9 Jérôme Thiard > The problem is that you have a `passwo