cool, the underscore seems to be the problem. Now to the second question. What will be the best way to do this? I mean to get the top N categories with the most offers, and from this top categories get the top M offers that have the highest percentage discount, that is what my not so nice SQL statement does :-)...
On Jul 11, 3:10 am, Nathan Ostgard <[EMAIL PROTECTED]> wrote: > On Jul 10, 2:58 pm, novice <[EMAIL PROTECTED]> wrote: > > > but I get error that the offers_offerprice.offerseller_id column > > doesnt exist. > > I think you're missing an underscore. Your model has the field named > offer_seller... shouldn't it then be > offers_offerprice.offer_seller_id? --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---