Re: Django and Javascript

2014-06-11 Thread César García Tapia
> [1] https://stripe.com/docs/stripe.js > > > > On Wed, Jun 11, 2014 at 4:22 PM, César García Tapia > wrote: > >> Hi. >> >> Probably this is an old subject, and it's been argued lots of times, but >> I guess I need some help to find the right resources

Django and Javascript

2014-06-11 Thread César García Tapia
Hi. Probably this is an old subject, and it's been argued lots of times, but I guess I need some help to find the right resources. When building a real-world django application, you need javascript. Lots of it. Making JS talk to django is more or less easy: $.ajax(), django-rest-framework, and

Re: InlineFormSet validation

2014-06-03 Thread César García Tapia
Ok, thanks to Russell's help in IRC I managed to solve this. Thank you so much!! El lunes, 2 de junio de 2014 09:47:17 UTC+2, César García Tapia escribió: > > Hi, Russell, thanks for answering :-) > > Your answer helps me, but not completely. I can add the error with t

Re: InlineFormSet validation

2014-06-02 Thread César García Tapia
d_name'] > > You might need to do this if you won't know if a specific value is valid > until you've checked all the individual values (e.g., A must be greater > than B - you can't check that until you know both A and B exist, which > won't be the case in the

InlineFormSet validation

2014-06-01 Thread César García Tapia
Hi. I already asked this question in StackOverflow, but I didn't get any useful answer. Let's try here :-) I have a BaseInlineFormSet, and I'd like to validate a field in the parent form based on the values on the fields of the children. As seen in the docs, the only method to make a custom val

Re: Back button in a SessionWizardView

2014-02-02 Thread César García Tapia
Hi, Ahmed. Your suggestion makes sense, but I think that, being called *Session*WizardView, it's very likely that this information is already stored in the session data. The question is how could I "redraw" a concrete step, filled with the data previously entered by the user. I'm sure it's pos

Back button in a SessionWizardView

2014-02-01 Thread César García Tapia
I'm writing a quite complex Wizard (lots of pages, lots of inputs), so I'd like to add a Back button to it. My first thought was just using a "history.back()" javascript call, but in the previous form I had some inputs created with Javascript that get lost if I just browse back, so I need to ac

Re: How to approach this problem?

2014-01-08 Thread César García Tapia
erour escribió: > > it looks like you need nested inlines, which I believe is not possible yet > (https://code.djangoproject.com/ticket/9025) > in the meantime you can try using this ( > https://github.com/Soaa-/django-nested-inlines) > > > On Sun, Jan 5, 2014 a

Re: How to approach this problem?

2014-01-05 Thread César García Tapia
Could anybody help me with this problem, please? I know it's not very polite to ask twice, but I'm stuck on this, and I really need to solve it. Excuse me for the insistence. C. El viernes, 3 de enero de 2014 01:48:23 UTC+1, César García Tapia escribió: > > I'm trying to

How to approach this problem?

2014-01-02 Thread César García Tapia
I'm trying to solve a problem, but I have no idea how to face it. I need some help :-) I have a model hierarchy like this: class Task(models.Model): name = models.CharField(max_length=255) number_of_steps = models.IntegerField() class StepGroup(models.Model): tas