[collector] rename model to singular form, but provide verbose_name* in Meta

This commit is contained in:
bronsen 2025-03-12 23:11:58 +01:00
parent 77c67c637c
commit 15279ee99c
2 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# Generated by Django 5.1.7 on 2025-03-12 21:29
# Generated by Django 5.1.7 on 2025-03-12 22:10
import django_extensions.db.fields
from django.db import migrations, models
@ -12,7 +12,7 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name="Teile",
name="Teil",
fields=[
(
"id",
@ -32,7 +32,9 @@ class Migration(migrations.Migration):
),
],
options={
"indexes": [models.Index(fields=["modified"], name="modified")],
"verbose_name": "Teil",
"verbose_name_plural": "Teile",
"indexes": [models.Index(fields=["modified"], name="idx_modified")],
"constraints": [
models.UniqueConstraint(fields=("name",), name="unique_names")
],