There are two buttons in the one form:
<form ...>
...
<input type="submit" name=b1 value="Request">
<input type="submit" name=b2 value="Refresh">
</form>
code in views.py:
if request.GET.get('b2',None)!=
None:
(code for refresh form)
else:
(code for request data)
<form ...>
...
<input type="submit" name=b1 value="Request">
<input type="submit" name=b2 value="Refresh">
</form>
code in views.py:
if request.GET.get('b2',None)!=
(code for refresh form)
else:
(code for request data)
Комментариев нет:
Отправить комментарий