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

case-insensitive property fixed, final adjustments before deployment #159

Merged
merged 1 commit into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions practice-app/post/templates/post_get.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<div class="wrapper">
<div class="header">POSTS</div>

<a href="http://127.0.0.1:8000/post/">Back</a>
<a href="http://127.0.0.1:8000/">Go to Home Page</a>
<a href="../">Back</a>
<a href="../../">Go to Home Page</a>

<div class="cards_wrap">
{% for json in response %}
Expand Down
2 changes: 1 addition & 1 deletion practice-app/post/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def poster(req):
#assigns country as empty string if fails
try:
country = req.POST['country']
country = re.sub("(^|\s)(\S)", convert_into_uppercase, country).replace('Of', 'of')
country = re.sub("(^|\s)(\S)", convert_into_uppercase, country.lower()).replace('Of', 'of')
except:
country = ''

Expand Down