Skip to content

NameError: name 'forms' is not defined #8

@taryep

Description

@taryep

Hello, thank you for this project that helped me a lot,
I'm using Django 1.11, I recently tried to use a molecule MolField in a django model and I got this error :
File "/opt/anaconda/lib/python3.6/site-packages/django_rdkit/models/fields.py", line 89, in formfield defaults = {'form_class': forms.CharField, 'strip': False, 'widget':forms.Textarea} NameError: name 'forms' is not defined

I corrected it by importing forms at the beggining of the file django_rdkit/models/fields.py :
from django import forms

Should it be corrected in the git repository ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions