Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=6168579
By: jonoomph
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
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users