Read and respond to this message at:
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
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
Thanks for your help,
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: