mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 18:52:23 +01:00
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
# Generated by Django 3.2.16 on 2022-12-09 19:50
|
|
|
|
from django.db import migrations, models
|
|
import django.utils.timezone
|
|
import tinymce.models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Announcement',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(help_text='This is not shown on the announcement but can be used as an identifier in the admin area.', max_length=100)),
|
|
('content', tinymce.models.HTMLField(max_length=500)),
|
|
('since', models.DateTimeField(default=django.utils.timezone.now)),
|
|
('until', models.DateTimeField(blank=True, null=True)),
|
|
('icon', models.CharField(default='bullhorn', help_text='Font Awesome 6 abbreviation for icon to use.', max_length=150, verbose_name='Font Awesome 6 icon')),
|
|
],
|
|
options={
|
|
'ordering': ('-since',),
|
|
},
|
|
),
|
|
]
|