Re: Getting a count of a RawQuerySet object

2011-09-21 Thread Jack Morgan
Hi, thanks! The issue I'm getting here is that the RawQuerySet object does not have the .count() method so it just gives an error. I also just checked that it does not have the 'all()' method either. On Wed, Sep 21, 2011 at 9:23 AM, wrote: > Let's say you have a model Utility, you can do > Util

Doing a relationship lookup from within a model.

2011-10-18 Thread Jack Morgan
I've got 2 tables that are related to each other. Orders and History. Inside the History table is the 'status' column. Like so.. class Orders(models.Model): 'order info' class History(models.Model): timestamp = models.DateTimeField(auto_add_now = True) order = models.ForeignKey(Orders)