Problem accessing data saved within a transaction

2008-07-03 Thread Chester
Hello, I'm trying to write an application that will make heavy use of transactions when saving different records to the database. I'm having a problem accessing the data that has been saved within a transaction before I commit the transaction. I need to do this because I need to either save all

Re: determining model subclass

2008-07-08 Thread Chester
André, I'm assuming that you are using the Trunk version of Django because subclassing isn't supported in previous versions. Assuming that. You can either have Item be an Abstract class which does not act like a table but just a parent class containing common items. (this is not what you are try

Django Form Doesn't Render

2011-02-14 Thread Dean Chester
Hi, I have written a form in forms.py that looks like this: class ContractForm(forms.Form): title = forms.CharField() start_date = forms.DateField() end_date = forms.DateField() description = forms.CharField(widget=forms.Textarea) client = forms.ModelChoiceFi

Re: django.contrib.auth.views.login customization

2011-02-16 Thread Dean Chester
I would write my own login controller using the Authentication and Login methods. Check out this part of the django docs: http://docs.djangoproject.com/en/1.2/topics/auth/#how-to-log-a-user-in Dean On 16 Feb 2011, at 13:51, galago wrote: > Is it possible, to add some extra validation checks in

Re: Should Django handle uploaded files in PUT as well as POST?

2010-04-23 Thread Chester (Carlos Duarte do Nascimento)
same way that you would use request.POST. A similar workaround may be produced for files, but this should be enough for most RESTful API implementations (until we get the official support as discussed before). Cheers Chester > On Jan 18, 12:31 pm, Russell Keith-Magee > wrote: >> On