1👍
✅
In your views, you use ListView
, CreateView
and UpdateView
, but only import ListView
and CreateView
.
views.py:
from django.views.generic import ListView, CreateView, UpdateView
from django.core.urlresolvers import reverse
from contacts.models import Contact
import forms
...
Source:stackexchange.com