I should also add that neither the formset nor the form report .errors
or .non_form_errors() at all.
On Oct 8, 6:15 pm, ses1984 wrote:
> I have a pretty simple form, defined below, that I am setting
> according to some initial data, and no matter what I try, I can't seem
> to get
I have a pretty simple form, defined below, that I am setting
according to some initial data, and no matter what I try, I can't seem
to get it to validate in a test.
I have created some test data, which is an array with one dictionary
element, where the dictionary corresponds to the form. If I cre
ght help youm, so sorry if I write BS...
>
> Can't you just use form prefixes to kepp the form namespaces
> seperated?http://docs.djangoproject.com/en/1.2/ref/forms/api/#prefixes-for-forms
>
> Regards,
> Felix
>
> On 01.10.2010 22:22, ses1984 wrote:
>
>
>
>
http://docs.djangoproject.com/en/1.2/topics/db/models/#extra-fields-on-many-to-many-relationships
I have two models with a many-to-many relationship through another
table with extra fields. In this case, I have one extra field which
represents the weight of the relationship.
I'm working on a view
Basically I have a queryset with N items in it, which I use to create
a model formset, which then has N+1 items in it. I'm not sure why this
is happening.
Here is a summary of the problem. Please forgive my crude methods for
gathering information (if anyone has feedback on that topic, I would
like
Thanks for spotting this! I can't believe I let myself make such a
basic error.
On Jun 27, 5:51 am, Daniel Roseman wrote:
> On Jun 27, 7:47 am, ses1984 wrote:
>
> > I am trying to use custom widgets in a model formset. I have tried to
> > achieve this by first defining th
I am trying to use custom widgets in a model formset. I have tried to
achieve this by first defining the custom widget, then a form that
uses this widget, then passing this form as an argument to
modelformset_factory().
I don't think something is working right because if I check the type
of the fo
If I could add, in my tests, I was testing to see whether the command
executed successfully and I was inspecting the state of the database
after the command executed.
On May 14, 3:04 pm, ses1984 wrote:
> I am interested in writing unit tests to cover some custom commands I
> have writte
I am interested in writing unit tests to cover some custom commands I
have written, but I'm unsure how I can pass options to these commands
through my unittest.TestCase classes.
I have a command to import data from my client's flat file system into
Django models, which originally existed as a NoAr
Thanks so much for pointing this out! Some time ago, I did change the
model from a float to a decimal field. I did not think it would be an
issue. I was also just reading about needing to manually update the
database when the model is change. I didn't connect that with my
problem, because, using Dj
Here's the traceback. Sorry I didn't post it before; I'm new at this.
Environment:
Request Method: POST
Request URL: http://192.168.0.10:8000/qc/newsession/
Django Version: 1.0.2 final
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.databrowse',
'django.con
In short, I have been having a hard time getting a ModelFormSet to
save. The formset is created from a queryset, and it's only intended
to edit one field of existing objects.
After a long string of mistakes and fixes, I'm finally stumped. The
following bit of code produces a TypeError exception ab
12 matches
Mail list logo