Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

AttributeError: 'Assign' object has no attribute 'getChildNodes' #8

Open
kmmbvnr opened this issue Jan 28, 2012 · 0 comments
Open

AttributeError: 'Assign' object has no attribute 'getChildNodes' #8

kmmbvnr opened this issue Jan 28, 2012 · 0 comments

Comments

@kmmbvnr
Copy link

kmmbvnr commented Jan 28, 2012

File "/home/kmmbvnr/Projects/wthr.cc/mobistyle/env/local/lib/python2.7/site-packages/DjangoLint/AstCheckers/model_fields.py", line 100, in visit_callfunc
x = node.parent.getChildNodes()[0]
AttributeError: 'Assign' object has no attribute 'getChildNodes'

And here is the file content:

from django.db import models

class TheModel(models.Model):
slug = models.SlugField(primary_key=True)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant