sadmin
sadmin copied to clipboard
get RemovedInDjango18Warning
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 = {......}
yeah,you are right,thanks.