Skip to content

Commit 936c1bf

Browse files
committed
Merge branch 'main' into add-tests-for-fundraising-webhook
2 parents 4606950 + cd69f2b commit 936c1bf

36 files changed

+220
-434
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232
- id: pyupgrade
3333
args: [--py312]
3434
- repo: https://github.com/adamchainz/django-upgrade
35-
rev: "1.22.1"
35+
rev: "1.22.2"
3636
hooks:
3737
- id: django-upgrade
3838
args: [--target-version, "5.0"]
@@ -42,7 +42,7 @@ repos:
4242
- id: black
4343
exclude: '(\/migrations\/)'
4444
- repo: https://github.com/rbubley/mirrors-prettier
45-
rev: "v3.3.3"
45+
rev: "v3.4.1"
4646
hooks:
4747
- id: prettier
4848
exclude_types: [html, json, scss]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated by Django 5.0.9 on 2024-11-21 06:52
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('aggregator', '0005_feeditem_add_index_date_modified'),
10+
]
11+
12+
operations = [
13+
migrations.AlterModelOptions(
14+
name='localdjangocommunity',
15+
options={'verbose_name_plural': 'Local Django Communities'},
16+
),
17+
]

aggregator/models.py

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ class LocalDjangoCommunity(models.Model):
226226
created_at = models.DateTimeField(auto_now_add=True)
227227

228228
class Meta:
229+
verbose_name_plural = _("Local Django Communities")
229230
constraints = [
230231
models.CheckConstraint(
231232
check=(

blog/tests.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
from contextlib import redirect_stderr
12
from datetime import timedelta
2-
from test.support import captured_stderr
3+
from io import StringIO
34

45
from django.test import TestCase
56
from django.urls import reverse
@@ -64,7 +65,7 @@ def test_docutils_safe(self):
6465
"""
6566
Make sure docutils' file inclusion directives are disabled by default.
6667
"""
67-
with captured_stderr() as self.docutils_stderr:
68+
with redirect_stderr(StringIO()):
6869
entry = Entry.objects.create(
6970
pub_date=self.now,
7071
is_active=True,

0 commit comments

Comments
 (0)