0037_coderedpage_related_classifier_term_and_more.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Generated by Django 4.1.8 on 2023-04-13 21:36
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ("coderedcms", "0036_filmstrip_filmpanel"),
  7. ]
  8. operations = [
  9. migrations.AddField(
  10. model_name="coderedpage",
  11. name="related_classifier_term",
  12. field=models.ForeignKey(
  13. blank=True,
  14. help_text="When getting related pages, pages with this term will be weighted over other classifier terms. By default, pages with the greatest number of classifiers in common are ranked highest.",
  15. null=True,
  16. on_delete=django.db.models.deletion.SET_NULL,
  17. related_name="+",
  18. to="coderedcms.classifierterm",
  19. verbose_name="Preferred related classifier term",
  20. ),
  21. ),
  22. migrations.AddField(
  23. model_name="coderedpage",
  24. name="related_num",
  25. field=models.PositiveIntegerField(
  26. default=3, verbose_name="Number of related pages to show"
  27. ),
  28. ),
  29. migrations.AddField(
  30. model_name="coderedpage",
  31. name="related_show",
  32. field=models.BooleanField(
  33. default=False, verbose_name="Show list of related pages"
  34. ),
  35. ),
  36. ]