Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can make a hospital without a name: requires validation #16

Open
juh079 opened this issue Oct 30, 2020 · 1 comment
Open

Can make a hospital without a name: requires validation #16

juh079 opened this issue Oct 30, 2020 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@juh079
Copy link

juh079 commented Oct 30, 2020

A new hospital can be created without specifying a name, as shown. Notice that this newly created hospital does can not be accessed/viewed/edited either, since the url was part of the name:
image

Fix is to add validation to name field. Should probably add validation to some other fields as well.
image

@juh079 juh079 self-assigned this Oct 30, 2020
@juh079 juh079 added bug Something isn't working good first issue Good for newcomers labels Oct 30, 2020
@juh079
Copy link
Author

juh079 commented Nov 4, 2020

Fixed by adding the following to hospital/forms.py.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant