Skip to content

added HttpResponseRedirect to views.py and assigned in to oscnRedirec… #80

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

Merged
merged 3 commits into from
Jul 24, 2020
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
6 changes: 5 additions & 1 deletion website/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ <h4>1. How do I know my OSCN Case Number?</h4>
</div>
<div class="col-sm-6">
<h4>2. What if I still can't find my case number?</h4>
<p>Check with your public defender or search your name online at <a href=“www.oscn.net/dockets/search.aspx”>www.oscn.net/dockets/search.aspx </a> </p> </div> <div class="col-sm-6">
<p>Check with your public defender or search your name online at <a href="https://www.oscn.net/dockets/search.aspx">www.oscn.net/dockets/search.aspx </a>
</p>
</div>

<div class="col-sm-6">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 good job reformatting this section

<h4>3. Can other people be reminded of my court date?</h4>
<p>Anyone with your case number will be able to use courtbot to keep track of your court date.</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
urlpatterns = [
path('', views.index, name='index'),
path('schedule_reminders', views.schedule_reminders, name='schedule_reminders')
]
]
2 changes: 2 additions & 0 deletions website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from alerts.models import Alert


def index(request):
# """View function for home page of site."""

Expand Down Expand Up @@ -72,3 +73,4 @@ def schedule_reminders(request):
_, another_reminder_message = set_case_reminder(arraignment_datetime, case_num, add_num)
messages.info(request, another_reminder_message)
return redirect('/#form')