Skip to content

Commit

Permalink
Merge pull request #2132 from LibraryOfCongress/CONCD-482-rsar-admin-…
Browse files Browse the repository at this point in the history
…changes

CONCD-482 Campaign admin: field order
  • Loading branch information
joshuastegmaier authored Oct 19, 2023
2 parents 7d346d0 + 351dace commit 011c232
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
20 changes: 20 additions & 0 deletions concordia/migrations/0087_auto_20231016_1056.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 3.2.20 on 2023-10-16 14:56

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("concordia", "0086_auto_20230911_1112"),
]

operations = [
migrations.AlterModelOptions(
name="card",
options={"ordering": ("title",)},
),
migrations.AlterModelOptions(
name="tutorialcard",
options={"verbose_name_plural": "cards"},
),
]
14 changes: 7 additions & 7 deletions concordia/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,21 +232,21 @@ class Status(models.IntegerChoices):
title = models.CharField(max_length=80)
slug = models.SlugField(max_length=80, unique=True, allow_unicode=True)

card_family = models.ForeignKey(
CardFamily, on_delete=models.CASCADE, blank=True, null=True
)
thumbnail_image = models.ImageField(
upload_to="campaign-thumbnails", blank=True, null=True
)

launch_date = models.DateField(null=True, blank=True)
completed_date = models.DateField(null=True, blank=True)

description = models.TextField(blank=True)
thumbnail_image = models.ImageField(
upload_to="campaign-thumbnails", blank=True, null=True
)
short_description = models.TextField(blank=True)

metadata = JSONField(default=metadata_default, blank=True, null=True)

card_family = models.ForeignKey(
CardFamily, on_delete=models.CASCADE, blank=True, null=True
)

class Meta:
indexes = [
models.Index(fields=["published", "unlisted"]),
Expand Down

0 comments on commit 011c232

Please sign in to comment.