How to clear form fields after a submit in Django

后端 未结 6 2197
我在风中等你
我在风中等你 2020-12-14 08:16

I\'ve this:

def profile(request, username):
    if request.method == \'POST\':
        if request.user.is_authenticate         


        
6条回答
  •  旧巷少年郎
    2020-12-14 08:41

    You can use this:

    Sometimes you can use this idea take attrs={ "autocomplete":"off"} for each inputs.
    

提交回复
热议问题