Problem with custom view and changeManipulator

2006-11-13 Thread ElGranAzul
Hi all. I've a problem with an edit view. The idea is a model with 2 fk, but editable in the same form. I've created a view to edit it. the code is in http://paste.e-scribe.com/2798/ but it doesn't handle the dom_social. Someone have an idea please? PD: I'm working with last svn version --~--

Re: Problem with custom view and changeManipulator

2006-11-13 Thread ElGranAzul
Sorry, i've send it to the wrong list. Sorry for the noise. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsu

[commercial] Django Training

2006-11-13 Thread sago
I just wanted to announce the first open commercial Django Training program. As well as being a great program, I hope it will be another reinforcement in the message that Django is a deployable commercial system for corporate web application development. I hope that having a solid and skills-base

How do i run just 1 test module?

2006-11-13 Thread Victor Ng
Is there a way to tell runtests.py to test just one module? Is this not the right command to invoke? PYTHONPATH=~/testdir python runtests.py modeltests.schemaevo.models --settings=testapp.settings thanks, vic -- "Never attribute to malice that which can be adequately explained by stupidity."

Defaults in the database?

2006-11-13 Thread Victor Ng
I have a "Person" model where I have a field defined like this: sex = models.CharField(maxlength=1, default='M', choices=(('M', 'Male), ('F', "Female"))) Although this is a simple case, I'd like to be able to do raw SQL inserts into the table and not have to worry about missing some default valu

win cash for free

2006-11-13 Thread pratush
Win cash Rs.5,000. Guaranteed real players, real winners. Free registration! http://surl.in/HLDDT238206SVRAKSX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
Something that is fairly common in web applications are indicator messages. For example, after you've posted an article, the site should echo back to you 'Article x created'. This is important because it let's the user know what is going on. Unfortunately with Django generic views, particularly t

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread James Bennett
On 11/13/06, jp <[EMAIL PROTECTED]> wrote: > Something that is fairly common in web applications are indicator > messages. For example, after you've posted an article, the site should > echo back to you 'Article x created'. This is important because it > let's the user know what is going on. You

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
James, I discussed with you some on IRC earlier my situation, but I'll bring it up here so others can read it. The problem with your suggestion is it will only work for authenticated users. If you have anonymous users, using messages like that simply won't work. The Django docs suggest using the

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread Collin Grady
Point of clarification, it'd be a GET param, since you can't add POST in a redirect ;-) -- I do not fear computers. I fear the lack of them. -- Isaac Asimov --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
You are correct Collin. :) I noticed that myself but couldn't go back and edit it or anything. James, also I noticed that the messages system even with authenticated users won't work properly with generic views because again, there is no way to know whether the update/creation was a success or n

Re: related object descriptor incorrectly returns

2006-11-13 Thread shaunc
> > Well, in "your email or username" I entered my email. (I get confused: > > presumably I don't have a "django" username, or is it my username here > > at google groups?) > > It's in the "settings" link at the bottom of the page. Ah...settings link?... there it is(!)... I must say, that's a bi

Re: How do i run just 1 test module?

2006-11-13 Thread Russell Keith-Magee
On 11/14/06, Victor Ng <[EMAIL PROTECTED]> wrote: > > Is there a way to tell runtests.py to test just one module? Yes. Pass in the app name, not the full app path. For example (ommitting the pythonpath and settings bits): python runtests.py basic will run just the 'basic' modeltest; python run

Re: doc fixes regarding old forms

2006-11-13 Thread Gary Wilson
Michael Radziej wrote: > Hi, > > there's a ticket (#3005) that fixes bad documentation about writing > forms. It's been closed as wontfix because newforms are coming (and then > re-opened by the reporter). Just for clarification, I re-opened #3005 but I wasn't the reporter. I was, however, the r

Re: How do i run just 1 test module?

2006-11-13 Thread Gary Wilson
Curious, does the new testing setup contain any mechanism for running tests for my own applications, say in a package /tests instead of in modeltests/ or regressiontests/ ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G