Export to GitHub

django-tagging - issue #283

Warning Django1.7


Posted on Sep 11, 2014 by Massive Camel

Hello! When you start a project with your component using Django 1.7 to console the error is

path_to_file\forms.py:12: RemovedInDjango18Warning: Creating a Mod elForm without either the 'fields' attribute or the 'exclude' attribute is depre cated - form TagAdminForm needs updating class TagAdminForm(forms.ModelForm):

Corrected it easy, you need after

class TagAdminForm(forms.ModelForm): class Meta: model = Tag

add

fields = 'all'

It should look like this

class TagAdminForm(forms.ModelForm): class Meta: model = Tag fields = 'all'

Status: New