ticket #5986, reviews welcome

2007-11-20 Thread Michal Salaban
Hi all, We have created a patch which allows customizing the order of Fields in Forms. http://code.djangoproject.com/ticket/5986 The initial idea (with weights) has been abandoned in favour of Meta data to provide flexibility (e.g. changing order in classes inheriting after form_for_model/form_fo

Re: using "select_related" .Does it works?

2007-11-19 Thread Michal Salaban
On Nov 19, 2007 5:28 PM, Greg_IAP <[EMAIL PROTECTED]> wrote: > db_column='instrument_id' > db_column='channel_id' You don't need this, really :) > I just want to make a join through this tables with the select_related > to be able to print Image.name, Instrument.name, Channel.name for image in

queries, Nones and NULLs

2007-11-19 Thread Michal Salaban
Hi all, I ran into troubles yesterday with a piece of code which had to find duplicate entries in the database: duplicates = Foo.objects.exclude(id=self.id).filter(bar=self.bar) which of course works as expected UNLESS called in freshly created instance, where self.id is None. Few seconds l