Menu

#1111 Dynamic attributes in django

open
Editor (491)
5
2010-04-08
2010-04-08
pm13
No

Django use quite dynamic ways for construction of its structures. For example, following code is valid:

from django.contrib.auth.models import Group

Group.objects # created externally by ensure_default_manager
Group.add_to_class # method of ModelBase (model metaclass)
Group.DoesNotExists # created by ModelBase.__new__

But only objects are found by pydev, for add_to_class and DoesNotExists there is "undefined variable from import"

(I am not sure if I should add new bugs for this kind of problems - but pydev says it supports Django now. )

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.