0018_add_genericsettings_and_sitesettings.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Generated by Django 4.2.2 on 2023-06-21 15:31
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ("wagtailcore", "0083_workflowcontenttype"),
  7. ("base", "0017_footertext_enforce_not_null"),
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name="GenericSettings",
  12. fields=[
  13. (
  14. "id",
  15. models.AutoField(
  16. auto_created=True,
  17. primary_key=True,
  18. serialize=False,
  19. verbose_name="ID",
  20. ),
  21. ),
  22. (
  23. "twitter_url",
  24. models.URLField(blank=True, verbose_name="Twitter URL"),
  25. ),
  26. ("github_url", models.URLField(blank=True, verbose_name="GitHub URL")),
  27. (
  28. "organisation_url",
  29. models.URLField(blank=True, verbose_name="Organisation URL"),
  30. ),
  31. ],
  32. options={
  33. "abstract": False,
  34. },
  35. ),
  36. migrations.CreateModel(
  37. name="SiteSettings",
  38. fields=[
  39. (
  40. "id",
  41. models.AutoField(
  42. auto_created=True,
  43. primary_key=True,
  44. serialize=False,
  45. verbose_name="ID",
  46. ),
  47. ),
  48. (
  49. "title_suffix",
  50. models.CharField(
  51. default="The Wagtail Bakery",
  52. help_text="The suffix for the title meta tag e.g. ' | The Wagtail Bakery'",
  53. max_length=255,
  54. verbose_name="Title suffix",
  55. ),
  56. ),
  57. (
  58. "site",
  59. models.OneToOneField(
  60. editable=False,
  61. on_delete=django.db.models.deletion.CASCADE,
  62. to="wagtailcore.site",
  63. ),
  64. ),
  65. ],
  66. options={
  67. "abstract": False,
  68. },
  69. ),
  70. ]