Skip to content

Commit

Permalink
Update django to version 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys0dev committed Dec 7, 2023
1 parent 53f9618 commit 4d34d2b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 23 deletions.
9 changes: 7 additions & 2 deletions cl/assets/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,13 @@ <h1>You did not supply the "private" variable to your template.
tabindex="206"><i class="fa fa-money gray fa-fw"></i>&nbsp;Donations</a></li>
<li><a href="{% url "view_settings" %}"
tabindex="207"><i class="fa fa-user gray fa-fw"></i>&nbsp;Account</a></li>
<li><a href="/sign-out/"
tabindex="208"><i class="fa fa-sign-out gray fa-fw"></i>&nbsp;Sign out</a></li>
<li>
<form id="logout-form" method="post" action="{% url 'admin:logout' %}">
{% csrf_token %}
<i class="fa fa-sign-out gray fa-fw"></i>
<button type="submit" class="btn btn-link" tabindex="208">&nbsp;Sign out</button>
</form>
</li>
</ul>
</li>
</ul>
Expand Down
19 changes: 10 additions & 9 deletions cl/recap/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,15 +392,16 @@ async def process_recap_pdf(pk):
).apply_async
)()

de = await DocketEntry.objects.aget(recap_documents=rd)
await mark_pq_successful(
pq,
d_id=de.docket_id,
de_id=rd.docket_entry_id,
rd_id=rd.pk,
)
docket = await Docket.objects.aget(id=de.docket_id)
await mark_ia_upload_needed(docket, save_docket=True)
if not pq.debug:
de = await DocketEntry.objects.aget(recap_documents=rd)
await mark_pq_successful(
pq,
d_id=de.docket_id,
de_id=rd.docket_entry_id,
rd_id=rd.pk,
)
docket = await Docket.objects.aget(id=de.docket_id)
await mark_ia_upload_needed(docket, save_docket=True)
return rd


Expand Down
4 changes: 0 additions & 4 deletions cl/search/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,6 @@ class DocketFactory(DjangoModelFactory):
class Meta:
model = Docket

idb_data = RelatedFactory(
"cl.recap.factories.FjcIntegratedDatabaseFactory",
factory_related_name="docket",
)
source = FuzzyChoice(Docket.SOURCE_CHOICES, getter=lambda c: c[0])
court = SubFactory(CourtFactory)
appeal_from = SubFactory(CourtFactory)
Expand Down
2 changes: 1 addition & 1 deletion cl/search/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ def test_basic_homepage_search_and_signin_and_signout(self) -> None:
self.assertIsNone(dropdown_menu.get_attribute("display"))
profile_dropdown.click()

sign_out = get_with_wait(wait, (By.LINK_TEXT, "Sign out"))
sign_out = get_with_wait(wait, (By.XPATH, "//button[contains(text(), 'Sign Out')]"))
sign_out.click()

# She receives a sign out confirmation with links back to the homepage,
Expand Down
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ celery = "^5.3.6"
certifi = "^2023.11.17"
courts-db = "^0.10.17"
disposable-email-domains = "*"
Django = "^4.2.7"
Django = "^5.0"
django-cache-memoize = "==0.*"
django-cors-headers = "^4.3.1"
django-csp = "^3.7.0"
Expand Down

0 comments on commit 4d34d2b

Please sign in to comment.