Description werden nicht gespeichert
Fixes #50 CKEditor does not work properly
This commit is contained in:
parent
811a690d39
commit
faa82cbbea
2 changed files with 21 additions and 2 deletions
20
app/bird/migrations/0005_alter_bird_description.py
Normal file
20
app/bird/migrations/0005_alter_bird_description.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Generated by Django 4.2.5 on 2023-09-10 09:47
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("bird", "0004_alter_fallenbird_comment"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="bird",
|
||||||
|
name="description",
|
||||||
|
field=models.CharField(
|
||||||
|
blank=True, max_length=256, null=True, verbose_name="Beschreibung"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -1,7 +1,6 @@
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
from ckeditor.fields import RichTextField
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
@ -84,7 +83,7 @@ class FallenBird(models.Model):
|
||||||
class Bird(models.Model):
|
class Bird(models.Model):
|
||||||
id = models.BigAutoField(primary_key=True)
|
id = models.BigAutoField(primary_key=True)
|
||||||
name = models.CharField(max_length=256, unique=True, verbose_name=_("Bezeichnung"))
|
name = models.CharField(max_length=256, unique=True, verbose_name=_("Bezeichnung"))
|
||||||
description = RichTextField(blank=True, null=True)
|
description = models.CharField(max_length=256,blank=True, null=True, verbose_name=_("Beschreibung"))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _("Vogel")
|
verbose_name = _("Vogel")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue