Hello,
I have the following situation:
I am rendering an array of ModelForms to my template. ie. formArray =
[, , ]
In the template I display the forms with the following:
{% for form in formArray %}
{{ form }}
{% endfor %}
Previously I have accessed certain ModelForms using {% if forloop.
You're right!
Thank you.
I have a custom template filter in the app to format the radio options a
certain way and I can just add this in to pick out the ones needing the
additional onChange.
JD
On Tuesday, May 1, 2012 9:27:01 PM UTC-6, jondykeman wrote:
>
> Hello,
>
> I h
Hello,
I have a form submission problem I can't seem to figure out a way around.
Normally, once a form was submitted I would HttpResponseRedirect() to the
main page.
However, there is something I can't seem to make work with this approach.
The form is being completed/submitted in the context
As far as I understand it the ForeignKey will have to be unique=True and
null=False.
I want to get a better sense of what you are trying to achieve. Is it that
you want to link comment and park only some of the time?
JD
On Sunday, May 13, 2012 7:41:39 PM UTC-6, psychok7 wrote:
>
> so i have th
On Sunday, May 13, 2012 7:53:58 PM UTC-6, psychok7 wrote:
>
> yes, like a park doesn't have to have comments, but all the comments must
> have an associated park and user all the time.
>
> what is the django syntax for me to achieve this?
>
> On Monday, May 14, 2012 2:
unt number in the session.
2) How should I go about selecting which type of session is best for me to
use?
Thanks again!
JD
On Sunday, May 13, 2012 7:39:53 PM UTC-6, jondykeman wrote:
>
> Hello,
>
> I have a form submission problem I can't seem to figure out a way around.
&g
Hi Everyone,
I have found when getting into Django that at least once a month I find
a reusable app that replaces the need for what I had spent the last ~2
weeks figuring out how to write myself.
As such, I thought it might be nice to start a thread of everyone's
favourite / most useful apps
Timothy - I am implementing something similar (Model GUI.png attached) that
is within a larger structure that not only generates models.py, but
registers them to the admin, builds the modelforms, and generates JS logic
etc.
Rather than such a thing being useful for developers I have found it gr
, September 9, 2012 8:37:48 AM UTC-6, jondykeman wrote:
>
> Timothy - I am implementing something similar (Model GUI.png attached)
> that is within a larger structure that not only generates models.py, but
> registers them to the admin, builds the modelforms, and generates JS
with attachment.
On Sunday, September 9, 2012 8:46:10 AM UTC-6, jondykeman wrote:
>
> Also, I saw on your github that you are looking for choices support.
>
> Just to give my insight I have implemented the attached for adding choices.
>
> It is ajax via a modal that pre-
add a choice in
> your implementation, can you change its value and label?
> Do/will you support most of the field and model options?
>
> On Sun, Sep 9, 2012 at 7:46 AM, jondykeman >
> wrote:
> > with attachment.
> >
> >
> > On Sunday, September 9, 20
It might only come up in the context of my work, but we do a lot of data
collection, and so when using the GUI all of the variables we create as
destined to be part a of specific modelform. As such, we way want to end up
with two forms (eg. Baseline, Purchase History) each of which will be
repr
Hi Everyone,
I was hoping to get some input on how other people deal with complicated
permission situations. I have banged my head against these concepts I think
I need some fresh eyes.
- User accounts can create and manage their own content.
- Users that are part of the same company can view
Hello,
I am in a very similar situation. I would in an environment that deals with
sensitive data collection. Everything has to be two-factor authenticated,
in the secure server zone etc. As part of this we need logging of every
action ever taken, by whom, when, and what the changes were.
At f
You can feed variables back through HttpResponse() using json serializer.
eg.
from django.utils import simplejson
response = {'Name': Name, 'Email': activeUser.email}
json = simplejson.dumps(response)
return HttpResponse(json, mimetype="text/json")
You should really look into AJAX as suggested ea
Can you put the code of the template you are extending this one with?
What I would guess from what you said is that you might be using {% block
head %} {% endblock %} in the other template that extends this one.
In that case you would override that for loop. If you want to add to the
head and a
gt; On Mon, Sep 17, 2012 at 7:31 PM, jondykeman >
> wrote:
> > Can you put the code of the template you are extending this one with?
> Here is the file that is extending:
>
> {% extends "report/report_header.html" %}
> {%
+1 For doing it right from the beginning.
I was tempted to disable when trying to deal with AJAX especially early on.
Below is some code with jQuery so that you won't need to manually feed the
token through your AJAX.
jQuery(document).ajaxSend(function(event, xhr, settings) {
function ge
Hello,
I'm looking for some conceptual input. I am starting to plan the development of
an app utilizing highly confidential data that will need to meet certain
governmental requirements.
I had dealt with auditing of the data etc, but it ends up they will require a
timestamped history of ever
19 matches
Mail list logo