Jonathan Thomas - 2009-01-18

When using django, I am trying to get code completion to work for my Model classes, but it seems to be missing some of the methods.

For example, in "models.py", I have the following class:

     from django.db import models

     class SchoolYear(models.Model):
          start_date = models.DateField(auto_now=False, auto_now_add=True)
          end_date = models.DateField(auto_now=True, auto_now_add=True)

Then, in my "views.py" file, I have:

     from models import SchoolYear

     # get a list of school years
     myList = SchoolYear.objects.all()

The code completion does successfully find some of the properties and methods, such as "start_date", "end_date", and "save()", but it can't find the "objects" variable.  Any ideas on why the "objects" suggestion is missing from the code completion?

Thanks for your help,
-Jonathan