Saturday, October 27, 2018

Re: Django table with checkboxes

Hi Stanislav,
I hope you get the solution to your problem, if you can , share the code.

On Monday, August 1, 2011 at 1:38:33 PM UTC+5:30, Stanislav Nedelchev wrote:
Hi everyone,
I'm quite new to django and still learning.
But I face a problem that i can't solve.
I have the following very simple example.
Let say that I have one model for Books.

class Book(models.Model):
    name = models.CharField(max_length=50,unique = True)
    description = models.TextField(blank = True)
    status = models.CharField(max_length=50,unique = True)
    created_on = models.DateTimeField(auto_now=True)
    def __unicode__(self):

If I search for all books for example.
I want to display table with result where first column is checkbox.
And if I check some books and hit button delete to be able to delete
Also I what to have one input field or drop down where i can choose
"out of order" and click button update to change status of all slected
books to "out of order"
I'm reading the documentaion but I can't find how to do it.
I made one template where I generate table with results.But I can't
process checked books.
I added manually delete button and form in template.
But maybe I must use Forms instead.
Any hint or example how to acomplish this will be very usefull.

And sorry for my bad english.
Best regards

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment