Re: MS SQL pyodbc backend update to trunk

2008-07-17 Thread bob84123
Hi all. Sorry about the noise before regarding DateField/TimeField.. it wasn't an issue specific to this backend. It's actually a django problem - details and fix at http://code.djangoproject.com/ticket/7801 Thanks. On Jul 16, 9:51 am, bob84123 <[EMAIL PROTECTED]> wrote: > Thanks for that.  

Re: ~Q broken?

2008-07-17 Thread Malcolm Tredinnick
On Thu, 2008-07-17 at 02:39 -0700, Göran Åström wrote: > In my view the 'not' can be interpreted differently. > Look at the following requests: > > 1. Give me blogs with entries matching a criteria. > 2. Give me blogs with entries not matching a criteria. > 3. Give me blogs without entries

Re: QManager - suggested inclusion in Django

2008-07-17 Thread Tom Tobin
On Thu, Jul 17, 2008 at 10:01 AM, Waylan Limberg <[EMAIL PROTECTED]> wrote: > > On Thu, Jul 17, 2008 at 6:46 AM, zvoase <[EMAIL PROTECTED]> wrote: >> >> Dear Developers, >> I've written a module which may be helpful to a lot of Django >> developers, and would like to suggest it for trials and

Re: Newforms admin: Validator for ModelAdmin classes broke my admin

2008-07-17 Thread Brian Rosner
On Jul 17, 2008, at 4:26 AM, Ross Lawley wrote: > Hi all, > > The recent changes in newforms admin r7529 changed the validation > for newforms admin models. However, it is a bit too strict and > doesn't allow customizable admin forms to output non model fields. > > I've added a patch with

Re: QManager - suggested inclusion in Django

2008-07-17 Thread Waylan Limberg
On Thu, Jul 17, 2008 at 6:46 AM, zvoase <[EMAIL PROTECTED]> wrote: > > Dear Developers, > I've written a module which may be helpful to a lot of Django > developers, and would like to suggest it for trials and testing, and > possible inclusion with Django. Well, for starters, it appears to be

Re: QManager - suggested inclusion in Django

2008-07-17 Thread Michael Elsdörfer
> In summary, it is called 'QManager', and is a Manager subclass which > helps developers create Managers from Q objects. QManager instances > can be joined by & and |, and by using the negative operator you can > create a QManager which is the complement of the original. Whether included in

Re: Generic relations and non-integer primary keys

2008-07-17 Thread Rudolph
Yes, that's why the proposed patch for the documentation says that both must be of the same type: http://code.djangoproject.com/attachment/ticket/7785/note-about-primary-keys.diff Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Generic relations and non-integer primary keys

2008-07-17 Thread Tai Lee
A documentation change about using a different field type is not enough in some cases (PostgreSQL 8.3), as noted in #6523 [1]. PostgreSQL 8.3 won't implicitly cast variables anymore, so if you pick integer for your generic relation you'll have problems relating models with varchar, and vice

QManager - suggested inclusion in Django

2008-07-17 Thread zvoase
Dear Developers, I've written a module which may be helpful to a lot of Django developers, and would like to suggest it for trials and testing, and possible inclusion with Django. I'm currently just looking for developers to help test and work with the module; it should be quite helpful. In

Re: ~Q broken?

2008-07-17 Thread Göran Åström
In my view the 'not' can be interpreted differently. Look at the following requests: 1. Give me blogs with entries matching a criteria. 2. Give me blogs with entries not matching a criteria. 3. Give me blogs without entries matching a criteria. All three are valid. In django 0.96 number 1 and 2

Re: Newforms admin: Validator for ModelAdmin classes broke my admin

2008-07-17 Thread RossC0
Sorry gmail munged the ticket url: http://code.djangoproject.com/ticket/7790 On Jul 17, 11:26 am, "Ross Lawley" <[EMAIL PROTECTED]> wrote: > Hi all, > > The recent changes in newforms admin r7529 changed the validation for > newforms admin models.  However, it is a bit too strict and doesn't

Newforms admin: Validator for ModelAdmin classes broke my admin

2008-07-17 Thread Ross Lawley
Hi all, The recent changes in newforms admin r7529 changed the validation for newforms admin models. However, it is a bit too strict and doesn't allow customizable admin forms to output non model fields. I've added a patch with tests to: http://code.djangoproject.com/ticket/7790- which also

Re: would is_loggedin be better than is_anonymous?

2008-07-17 Thread Joost Cassee
On 17 jul, 02:05, "Robert Coup" <[EMAIL PROTECTED]> wrote: > Its not that hard to handle... > > 1. Have long-lived sessions: >  - if there isn't a user associated: "anonymous" >  - if it has a user: "known" > > 2. When a user logs in (ie. types their username and password): >  - add the user