mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 06:42:21 +01:00
Add announcements app
This commit is contained in:
30
marietje/announcements/migrations/0001_initial.py
Normal file
30
marietje/announcements/migrations/0001_initial.py
Normal file
@ -0,0 +1,30 @@
|
||||
# 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',),
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user