Skip to content

Commit

Permalink
Merge pull request #159 from bounswe/practice-app/bug-fix/post-#137
Browse files Browse the repository at this point in the history
case-insensitive property fixed, final adjustments before deployment
  • Loading branch information
kardelendemiral authored May 19, 2022
2 parents 275111c + d54030d commit 80705be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 80705be

Please sign in to comment.