Skip to content

Commit ef317e8

Browse files
committed
⬆️ Django 5.2
1 parent eb68d54 commit ef317e8

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

cypress/e2e/sign-in.cy.js

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

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

cypress/support/commands.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
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.visit('/');
28+
cy.get('#logout').click();
2829
cy.get('#guest-login').click();
2930
cy.get('#id_username').type(username).blur();
3031
cy.get('#id_password').type(password).blur();

quizcon/templates/base.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,15 @@
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+
124+
<form action="/accounts/logout/?next=/" method="post" class="d-inline">
125+
{% csrf_token %}
126+
<button type="submit" id="logout" class="btn text-decoration-underline" title="Log Out">
127+
(logout)
128+
</button>
129+
</form>
130+
124131
{% endif %}
125132
</span>
126133
</li>

requirements.txt

Lines changed: 1 addition & 1 deletion
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.2
44
feedparser==6.0.12

0 commit comments

Comments
 (0)