Tim,
Actually thanks!
Once I put it into a function with the @transaction.commit_manually
decoration and manually commited: it worked fine.
Thanks again,
Dan
On Jul 11, 11:32 am, Dannoo <[EMAIL PROTECTED]> wrote:
> I tried that and got "serialized connection: cannot commit on
I tried that and got "serialized connection: cannot commit on this
cursor"
Also tried close with no results.
On Jul 11, 11:29 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> > I am wondering why does this code does not work. The sql runs fine
> > fine when executed through the postgres admin.
>
>
I am wondering why does this code does not work. The sql runs fine
fine when executed through the postgres admin.
from django.db import connection
cursor = connection.cursor()
x = cursor.execute("UPDATE videos_video SET name = 'Please work'
WHERE videos_video.id = 1; " )
Any help thoughts wou
I have a "Faves" model that has a foreignkey to the User model.
I need to create a form that works similar to the edit inline fields,
someone could add/edit multiple faves for a user.
What is the best way to do this with newforms?
--~--~-~--~~~---~--~~
You recei
create the
list of strings from the widgets value.
Dan
On May 17, 3:10 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-05-17 at 11:58 -0700, Dannoo wrote:
> > I have a few questions about the best ways to extend the Field and
> > Form classes that are pa
I have a few questions about the best ways to extend the Field and
Form classes that are part of django newforms.
For example, create a Field that is like a charField but gets a list
of strings which should be rendered as a comma delimited in the text
widget. When that filed is cleaned the comma
Basic Beginner Question
Is it possible with built-in manipulators and FormWrappers to create a
form
that allows one to add/edit multiple instances of a model in one form.
This is done in the admin when the model specifies edit-inline and
num_in_admin greater than one. The admin form allows for t
7 matches
Mail list logo