Menu ▾ ▴

Code completion issues with PyDev

Huuuze
2008-06-04
2013-03-15
  • Huuuze

    Huuuze - 2008-06-04

    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?