> Michael I appreciate your answer...
I omited in my code example was the assert False that was being used to debug the problem, so intuitively you were right something was wrong with the code With the assert False though it was bringing up the debugger and I could view the variables. Without the return statement in the function data was not being commited to a save visable in Postgres Sql. > from views.py > def testit(): > from myproject.models import NewCust > p1 = NewCust() ## Create blank instance > p1.zipcode = '2222222' ## Load something > p1.last_name = 'Smith' > p1.save() ## Save it > # assert False, p1.id return ## NOTE: save does not commit ## without return on Postgre Sql If anyone can explain to me why this is, it could help, I've been using assert False to attempt to debug something that apparently does not work if assert False is present. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---