I've run into a roadblock with code completion using PyDev. In my example, I have a class that inherits from a Django class named Model. Example:
>> from django.db import models
>> class MyClass(models.Model):
>> ..do something..
When I invoke MyClass in another file (specifically a views.py), the code completion does not recognize the members that MyClass has inherited from Model. Example:
>> from mypackage.models import MyClass
>> mc = MyClass.objects.all()
The code completion fails to display the ".objects" member of that class. At first, I thought I was having PYTHONPATH issues, but when I open a Python shell and execute a "dir(MyClass)", I can see "objects" as an available member of MyClass.
Is this a bug/limitation in PyDev (doesn't seem to work with PyDev Extensions either) or have I missed a setting?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've run into a roadblock with code completion using PyDev. In my example, I have a class that inherits from a Django class named Model. Example:
>> from django.db import models
>> class MyClass(models.Model):
>> ..do something..
When I invoke MyClass in another file (specifically a views.py), the code completion does not recognize the members that MyClass has inherited from Model. Example:
>> from mypackage.models import MyClass
>> mc = MyClass.objects.all()
The code completion fails to display the ".objects" member of that class. At first, I thought I was having PYTHONPATH issues, but when I open a Python shell and execute a "dir(MyClass)", I can see "objects" as an available member of MyClass.
Is this a bug/limitation in PyDev (doesn't seem to work with PyDev Extensions either) or have I missed a setting?
That's a known bug: http://sourceforge.net/tracker/index.php?func=detail&aid=1909942&group_id=85796&atid=577329 (still checking a way to fix it).
Cheers,
Fabio