Skip to content

Commit

Permalink
Merge pull request #887 from DemocracyClub/not-null-alt-text
Browse files Browse the repository at this point in the history
Not null alt text
  • Loading branch information
symroe authored Nov 4, 2024
2 parents 6e906ff + f34a047 commit 188ac61
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.16 on 2024-11-04 10:46

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("hermes", "0012_post_hero_alt_text"),
]

operations = [
migrations.AlterField(
model_name="post",
name="hero_alt_text",
field=models.CharField(
blank=True,
default="",
max_length=100,
verbose_name="hero alt text",
),
preserve_default=False,
),
]
2 changes: 1 addition & 1 deletion democracy_club/apps/hermes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class Post(TimestampedModel):
_("hero"), upload_to=post_hero_upload_to, blank=True, null=True
)
hero_alt_text = models.CharField(
_("hero alt text"), max_length=100, blank=True, null=True
_("hero alt text"), max_length=100, blank=True
)
subject = models.CharField(_("subject"), max_length=100)
slug = models.SlugField(_("slug"), max_length=100, unique=True)
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[tool.ruff]
line-length = 80
extend-exclude = ["democracy_club/settings/local.py"]

[tool.ruff.lint]
ignore = ["E501"]
extend-select = [
"I",
Expand All @@ -8,7 +11,6 @@ extend-select = [
"Q003",
"RET",
]
extend-exclude = ["democracy_club/settings/local.py"]

[tool.coverage.report]
exclude_lines = [
Expand Down

0 comments on commit 188ac61

Please sign in to comment.