sadmin icon indicating copy to clipboard operation
sadmin copied to clipboard

get RemovedInDjango18Warning

Open raphaelsoul opened this issue 9 years ago • 1 comments

RemovedInDjango18Warning caused by dynamic ModelForm. RolelistForm and PermissionlistForm needs update

django version :1.7

the solution is when define the ModelForm, insert an attribute into "class Meta",

like this

    class Meta:
        model = Role
        fields = "__all__"
        widgets = {......}

raphaelsoul avatar Apr 13 '15 05:04 raphaelsoul

yeah,you are right,thanks.

ops-coffee-cn avatar Jul 21 '15 09:07 ops-coffee-cn