From 3431b6340c38f8f1ea5e125344c0e7a13a4858ac Mon Sep 17 00:00:00 2001
From: Joe Kaufeld
Date: Tue, 19 Apr 2022 19:32:08 -0400
Subject: [PATCH] Update title length (#402)
* minor graphical updates and add datefield for backdating posts
* blacken files and fix dep problem
* Bump version number
* date in form should be optional
* oh look more formatting changes that aren't relevant to what I'm working on AT ALL
* update title length
* Bump version number
Co-authored-by: itsthejoker
---
blossom/templates/website/index.html | 2 +-
pyproject.toml | 2 +-
website/migrations/0002_alter_post_title.py | 18 ++++++++++++++++++
website/models.py | 2 +-
4 files changed, 21 insertions(+), 3 deletions(-)
create mode 100644 website/migrations/0002_alter_post_title.py
diff --git a/blossom/templates/website/index.html b/blossom/templates/website/index.html
index f16490c6..584cee96 100644
--- a/blossom/templates/website/index.html
+++ b/blossom/templates/website/index.html
@@ -16,7 +16,7 @@
{% endif %}
{% for p in posts %}
-
+
Published {{ p.date }}
diff --git a/pyproject.toml b/pyproject.toml
index e1c775d6..d30a22a6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "blossom"
-version = "1.69.0"
+version = "1.70.0"
description = "The site!"
authors = ["Grafeas Group Ltd. "]
diff --git a/website/migrations/0002_alter_post_title.py b/website/migrations/0002_alter_post_title.py
new file mode 100644
index 00000000..7a9ef882
--- /dev/null
+++ b/website/migrations/0002_alter_post_title.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.2.13 on 2022-04-19 23:24
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("website", "0001_initial"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="post",
+ name="title",
+ field=models.CharField(max_length=300),
+ ),
+ ]
diff --git a/website/models.py b/website/models.py
index 645de333..99848426 100644
--- a/website/models.py
+++ b/website/models.py
@@ -6,7 +6,7 @@
class Post(models.Model):
- title = models.CharField(max_length=70)
+ title = models.CharField(max_length=300)
body = models.TextField()
author = models.ForeignKey(get_user_model(), on_delete=models.CASCADE)
date = models.DateTimeField(default=timezone.now)