diff --git a/backend/apps/quib/migrations/0005_alter_quib_slug.py b/backend/apps/quib/migrations/0005_alter_quib_slug.py new file mode 100644 index 00000000..eb17fd20 --- /dev/null +++ b/backend/apps/quib/migrations/0005_alter_quib_slug.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.4 on 2024-12-25 12:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('quib', '0004_quib_highlighted'), + ] + + operations = [ + migrations.AlterField( + model_name='quib', + name='slug', + field=models.SlugField(blank=True, max_length=25, verbose_name='slug'), + ), + ] diff --git a/backend/apps/quib/models.py b/backend/apps/quib/models.py index a9fe474f..cd1120b2 100644 --- a/backend/apps/quib/models.py +++ b/backend/apps/quib/models.py @@ -28,7 +28,7 @@ class Quib(CreatedAtMixin, IsPublicMixin, ShortUUIDMixin): ) highlighted = models.BooleanField(_('highlighted'), default=False) title = models.CharField(_('title'), max_length=255) - slug = models.SlugField(_('slug'), editable=False, max_length=25, blank=True) + slug = models.SlugField(_('slug'), max_length=25, blank=True) content = models.TextField(_('content'), blank=True) cover = models.ImageField( _('cover'), diff --git a/frontend/src/lib/components/quib.svelte b/frontend/src/lib/components/quib.svelte index ca44b13d..0c1c67b6 100644 --- a/frontend/src/lib/components/quib.svelte +++ b/frontend/src/lib/components/quib.svelte @@ -121,16 +121,16 @@
{@render href_overlay()}
-
+
{@render avatar_name_date()}

{quib.title}

-
+