0001_initial.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Generated by Django 3.2.23 on 2024-01-23 13:53
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. initial = True
  5. dependencies = [
  6. ]
  7. operations = [
  8. migrations.CreateModel(
  9. name='Cat_Wiki',
  10. fields=[
  11. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  12. ('cw_titre', models.CharField(max_length=128, unique=True, verbose_name='Titre')),
  13. ('cw_titre_slgify', models.CharField(blank=True, editable=False, max_length=128, verbose_name='Titre Slugify')),
  14. ],
  15. options={
  16. 'verbose_name': 'Catégories',
  17. 'verbose_name_plural': 'Catégories',
  18. },
  19. ),
  20. migrations.CreateModel(
  21. name='Wiki',
  22. fields=[
  23. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  24. ('w_titre', models.CharField(max_length=128, unique=True, verbose_name='Titre')),
  25. ('w_titre_slugify', models.CharField(blank=True, editable=False, max_length=128, verbose_name='Titre Slugify')),
  26. ('w_mots_clefs', models.CharField(blank=True, max_length=512, verbose_name='Mots clefs')),
  27. ('w_description', models.TextField(blank=True, verbose_name='Description')),
  28. ('w_description_img', models.URLField(blank=True, max_length=128, verbose_name='Url de la miniature')),
  29. ('w_contenu', models.TextField(blank=True, verbose_name='Contenu')),
  30. ('w_right', models.TextField(blank=True, verbose_name='Contenu à droite')),
  31. ('w_publier', models.BooleanField(default=False, verbose_name='Publié')),
  32. ('w_reading', models.IntegerField(default=0, verbose_name='Nb Lectures')),
  33. ('w_publdate', models.DateTimeField(blank=True, null=True, verbose_name='Publié le')),
  34. ('w_cat', models.ManyToManyField(blank=True, to='wiki.Cat_Wiki')),
  35. ],
  36. options={
  37. 'verbose_name': 'Gestion du Wiki',
  38. 'verbose_name_plural': 'Gestion du Wiki',
  39. 'ordering': ['-w_publdate'],
  40. },
  41. ),
  42. ]