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

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

@kmmbvnr

Description

@kmmbvnr

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions