Initial commit

This commit is contained in:
2024-10-21 20:32:47 +02:00
commit dae5381b58
34 changed files with 1953 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Generated by Django 5.1.2 on 2024-10-21 11:41
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Image',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(blank=True, help_text='Image title that will be posted', max_length=200, null=True)),
('alt_text', models.CharField(blank=True, help_text='Describe the image', max_length=2000, null=True)),
('file_path', models.CharField(max_length=1500)),
('image', models.ImageField(upload_to='')),
('file_hash', models.CharField(blank=True, max_length=64, null=True, unique=True, verbose_name='File hash')),
('last_posted', models.DateTimeField(blank=True, null=True)),
('number_times_posted', models.IntegerField(default=0)),
],
),
]

View File

@@ -0,0 +1,18 @@
# Generated by Django 5.1.2 on 2024-10-21 18:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('idescriptor', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='image',
name='alt_text',
field=models.TextField(blank=True, help_text='Describe the image', null=True),
),
]

View File