rohitjain-rj / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

Warning Django1.7 #283

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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__'

Original issue reported on code.google.com by Dead23An...@gmail.com on 11 Sep 2014 at 2:07