PathagarBooks / pathagar

Pathagar is a simple bookserver serving OPDS feeds
GNU General Public License v2.0
101 stars 26 forks source link

Title and Author are mandatory fields but no error message is displayed #56

Closed godiard closed 3 years ago

godiard commented 9 years ago

When using the "Add book" option in the web, if the user don't fill the Title or Author fields, no error is displayed, just the form is shown.

godiard commented 9 years ago

I can't find in the code why these fields are required, but if are not filled, the book is not added. Any idea?

sethwoodworth commented 9 years ago

https://github.com/PathagarBooks/pathagar/blob/master/books/forms.py

The BookForm form requires all fields required my the db by default.

There is a way to automatically return errors from django forms I will look up the docs when I get back to a keyboard. On Apr 10, 2015 3:09 PM, "Gonzalo Odiard" notifications@github.com wrote:

I can't find in the code why these fields are required, but if are not filled, the book is not added. Any idea?

— Reply to this email directly or view it on GitHub https://github.com/PathagarBooks/pathagar/issues/56#issuecomment-91669159 .

godiard commented 9 years ago

Can we close this?