add article date field
This commit is contained in:
parent
470887c34e
commit
6351da70ee
6 changed files with 42 additions and 19 deletions
22
hub/services/migrations/0039_article_article_date.py
Normal file
22
hub/services/migrations/0039_article_article_date.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Generated by Django 5.2 on 2025-07-04 13:48
|
||||
|
||||
import django.utils.timezone
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("services", "0038_add_plan_ordering_and_best"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="article",
|
||||
name="article_date",
|
||||
field=models.DateField(
|
||||
default=django.utils.timezone.now,
|
||||
help_text="Date of the article publishing",
|
||||
),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue