Skip to content

Commit f5ca9d8

Browse files
committed
⬆️ Django 5.2
1 parent b841af4 commit f5ca9d8

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

cypress/e2e/sign-in.cy.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
describe('Sign-In Stories', function() {
22
beforeEach(() => {
3-
cy.visit('/accounts/logout/?next=/');
4-
3+
cy.get('#logout').click();
54
});
65

76
it('Sign In', function() {

cypress/support/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// -- This will overwrite an existing command --
2525
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
2626
Cypress.Commands.add('login', (username, password) => {
27-
cy.visit('/accounts/logout/?next=/');
27+
cy.get('#logout').click();
2828
cy.get('#guest-login').click();
2929
cy.get('#id_username').type(username).blur();
3030
cy.get('#id_password').type(password).blur();

quizcon/templates/base.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,13 @@
119119
{{request.user.first_name}} {{request.user.last_name}}
120120
{% else %}
121121
{{ request.user.username }}
122-
{% endif %}
123-
<a href="/accounts/logout/?next=/" id="logout" class="text-decoration-underline" title="Log Out">(logout)</a>
122+
{% endif %}
123+
<form action="/accounts/logout/?next=/" method="post" class="d-inline">
124+
{% csrf_token %}
125+
<button type="submit" id="logout" class="btn text-decoration-underline" title="Log Out">
126+
(logout)
127+
</button>
128+
</form>
124129
{% endif %}
125130
</span>
126131
</li>

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django>=4.2.14,<5
1+
Django>=5.2,<6
22
pytz==2025.2
33
httplib2==0.31.0
44
feedparser==6.0.12
@@ -20,7 +20,7 @@ beautifulsoup4==4.14.3
2020
cssselect==1.3.0
2121
lxml==6.0.2
2222
fuzzywuzzy==0.18.0
23-
sure==2.0.1
23+
sure==3.0a2
2424
pyasn1==0.6.1
2525
cryptography==46.0.3 # pyOpenSSL
2626
cffi==2.0.0

0 commit comments

Comments
 (0)