Pydev is failing to recognize the "through" attribute on Django ManyToManyFields
So, I have the following model:


    class SyllabusAuthor(models.Model):
        email = models.EmailField(max_length=120)
        phone = models.CharField(max_length=32, blank = True)
        office = models.CharField(max_length=120, blank = True)#...

    class SyllabusAuthorThrough(models.Model):
        author = models.ForeignKey('SyllabusAuthor')
        syllabus = models.ForeignKey('Syllabus')

    #...
    class Syllabus (models.Model):
        authors = models.ManyToManyField('SyllabusAuthor', through='SyllabusAuthorThrough')

In the admin module, I would like to inline a field for a SyllabusAuthor in the Syllabus form:

    from django.contrib import admin
    #...
    class AuthorInline(admin.TabularInline):
        model = Syllabus.authors.through
    #...

Unfortunately, for reasons unbeknownst to me, PyDev refuses to recognize the existence of the 'through' attribute, saying "Undefined variable from import: through". I've checked in the console, and it is running Django 1.4. Does anyone have any idea what is happening here?
Pydev is failing to recognize the "through" attribute on Django ManyToManyFields
===

So, I have the following model:


    class SyllabusAuthor(models.Model):
        email = models.EmailField(max_length=120)
        phone = models.CharField(max_length=32, blank = True)
        office = models.CharField(max_length=120, blank = True)#...

    class SyllabusAuthorThrough(models.Model):
        author = models.ForeignKey('SyllabusAuthor')
        syllabus = models.ForeignKey('Syllabus')

    #...
    class Syllabus (models.Model):
        authors = models.ManyToManyField('SyllabusAuthor', through='SyllabusAuthorThrough')

In the admin module, I would like to inline a field for a SyllabusAuthor in the Syllabus form:

    from django.contrib import admin
    #...
    class AuthorInline(admin.TabularInline):
        model = Syllabus.authors.through
    #...

Unfortunately, for reasons unbeknownst to me, PyDev refuses to recognize the existence of the 'through' attribute, saying "Undefined variable from import: through". I've checked in the console, and it is running Django 1.4. Does anyone have any idea what is happening here?