A
A
Alexander2016-05-21 10:08:31
Django
Alexander, 2016-05-21 10:08:31

Is there a ready-made module for the current task?

3cb427c6c293486ba4daceae36198c73.png
Is there already a ready-made module for such functionality so that when the user presses the status, then ajax changes the status fields in the database to 0 if 1 or vice versa. Yes, I know it can be done through list_editable, but it's not very user-friendly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2016-05-21
@fox_12

There's a dozen lines of code there.
On the form, you intercept the click of the "status" button with the same api.jquery.com/jquery.ajax and send a post request with the status and token of your entry.
And on the server, the request is received and processed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question