Re: Possible bug with admin inlines

2012-03-05 Thread Martin Ostrovsky
Danny reading your reply gave me an idea to try and it worked. I switched the order of the inlines. So I put C first, then B. This way C validates properly, then B is deleted and the cascaded deletion deletes C and everything works as expected. On Monday, March 5, 2012 6:15:18 PM UTC-5, Danny W

Possible bug with admin inlines

2012-03-05 Thread Martin Ostrovsky
Hello, I have come across this issue in Django v1.2.5, just test it on 1.4rc1 and can still reproduce. Not sure if it's a bug or a case of "don't do that". But here goes. Here's the models.py: http://pastebin.com/8QU9dkYd Here's the admin.py: http://pastebin.com/JGFu5nhv So what we have are

Re: Templates extending themselves cause infinite recursion

2008-09-05 Thread Martin Ostrovsky
David, No error message appears for me (on OS X). Python just crashes. Is this ticket worthy? On Sep 5, 2:34 am, David Cramer <[EMAIL PROTECTED]> wrote: > Does the error message pretty easily let you figure out what's wrong? > > On Aug 31, 1:38 pm, Martin Ostrovsky <[EM

Templates extending themselves cause infinite recursion

2008-08-31 Thread Martin Ostrovsky
Now I'm not sure if this is a bug worth squashing or more a case of if you're dumb, you deserve what you get but ... I erroneously extended a template with itself (it was a typo, that's how I stumbled upon it). So say you have a template called home.html and had the following in it: {% extends 'h

Re: syncdb and postgres problems

2008-01-25 Thread Martin Ostrovsky
Forgot to add, I'm using Django from trunk, latest revision. --~--~-~--~~~---~--~~ 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 unsubs

syncdb and postgres problems

2008-01-25 Thread Martin Ostrovsky
I posted in this in the Users group, but thought somebody here might want to see this as well ... I'm trying to run syncdb on a clean database (no other tables etc.) in postgres. It produces the standard Postgres error: psycopg2.ProgrammingError: current transaction is aborted, commands ignored

CONTENT-LENGTH not being set

2006-05-13 Thread Martin Ostrovsky
Hello, Is there a reason why CONTENT-LENGTH is always blank in the environ dictionary that gets passed to WSGIRequest ? (django/core/handlers/wsgi.py) Why isn't it just automatically computed based on the length of the request's content? The reason I ask is because I'm getting an exception rais

Difference between an object's save() method and manipulator's save() method

2006-02-21 Thread Martin Ostrovsky
In my model, I have a date_created field that is defined as : date_created = meta.DateField(auto_now_add = True, db_index = True) This field is correctly auto-populated upon creation when I invoke creation of the objects through a web interface (either the admin or my own). However, when I creat

Multiple form actions within one form

2006-02-20 Thread Martin Ostrovsky
How does django map multiple form actions within one form to python function calls ? For example, in the HTML below: I would want one python function to correspond to each of submit_action1 and submit_action2. Thanks. --~--~-~--~~~---~--~~ You recei