Re: Custom manager and default admin manager

2007-04-12 Thread asrenzo
Hi, again Found a solution which doesn't seem to be documented: If you need a special manager for the admin interface, then you should add this one to the Admin class of your model: class Admin: manager = MyManager() Regards, Laurent On 12 avr, 15:39, "asrenzo" <[EMAIL PROTECTED]> wr

Custom manager and default admin manager

2007-04-12 Thread asrenzo
Hi, We can read in the model reference that we can create an unlimited number of managers in a single model. The documentation gives example of how to create and use a custom manager. We can also read: """ If you use custom Manager objects, take note that the first Manager Django encounters (in