A
A
Akhnar2018-06-09 03:39:09
Django
Akhnar, 2018-06-09 03:39:09

How to change on button click?

The model has a BooleanField(default = False) field.
How can I change this field to True on button click?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marataziat, 2018-06-09
@marataziat

Just make a view with a POST request that accepts a click?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question