Hi, I'm not sure if this could help you, or maybe I'm not getting it right. In any case please excuse me if this is something that you already have checked out.
You can override the default managers to do different things. I think this could be useful: http://www.djangoproject.com/documentation/model_api/#managers Regards, Jorge On 7/6/06, Filipe <[EMAIL PROTECTED]> wrote: > > hello there, > > I'm starting with Django a new project where I most probably will be > using only custom sql. The most part of the system will be some > (complex) searching for data in a database, so I think I won't take a > lot of benefit from using the ORM. > > What I'm planning is not to have model classes inherited from > django.db.models, but I might still need some model classes to deliver > the collected data to the views and to enclose some business logic. > > The problem is, if I'm not to use django's object-relational mapper, I > will need to write my own data retrieval logic, where is the best place > to put it? perhaps in the models? > > The most part of the data being collected will arrive from the DB in a > somewhat "unnormalized" way, and I'll want to "normalize" it into > several different domain objects. So, placing the data retrieval logic > on the domain objects doesn't really make that much sense to me, > because in each data retrieval operation several types of domain > objects will be retrieved. This is actually logic that has to do with a > bunch of different object types, and not only with a specific object > type. > > Some time ago I've read something about Manipulators and, at the time, > it seemed to be what I am looking for. Is it? > > > Cheers, > Filipe > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---