0001_initial.py 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Generated by Django 3.2.4 on 2021-06-07 12:36
  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='Contact',
  10. fields=[
  11. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  12. ('c_name', models.CharField(max_length=128, verbose_name='Votre nom')),
  13. ('c_email', models.EmailField(max_length=254, verbose_name='Votre emails')),
  14. ('c_type', models.CharField(choices=[('contact', 'Pour un contact'), ('beug', 'Pour un beug'), ('plainte', 'Pour une plainte')], default='contact', max_length=16, verbose_name='Type de demande')),
  15. ('c_description', models.TextField(verbose_name='Votre demande')),
  16. ('c_statut', models.CharField(choices=[('non_lu', 'Non Lu'), ('lu', 'Lu'), ('archive', 'Archivé')], default='non_lu', max_length=16, verbose_name='Statut de la demande')),
  17. ],
  18. ),
  19. migrations.CreateModel(
  20. name='Page',
  21. fields=[
  22. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  23. ('p_titre', models.CharField(max_length=128, unique=True, verbose_name='Titre')),
  24. ('p_titre_slugify', models.CharField(blank=True, editable=False, max_length=128, verbose_name='Titre Slugify')),
  25. ('p_icone', models.CharField(blank=True, max_length=32, verbose_name="Code de l'icone")),
  26. ('p_type', models.CharField(choices=[('page', 'Une page'), ('sys', 'Une page interne'), ('lien', 'Un lien')], default='page', max_length=4, verbose_name='Type de page')),
  27. ('p_adresse', models.CharField(max_length=64, verbose_name='Adresse')),
  28. ('p_menu_position', models.CharField(choices=[('no', 'No'), ('haut', 'En haut'), ('cote', 'Sur le coté'), ('pied', 'En pied de page')], default='no', max_length=4, verbose_name='A utiliser dans un menu ?')),
  29. ('p_menu_poid', models.PositiveSmallIntegerField(default=50, verbose_name='Poid si utilisé dans les menus')),
  30. ('p_mots_clefs', models.CharField(blank=True, max_length=512, verbose_name='Mots clefs')),
  31. ('p_description', models.TextField(blank=True, verbose_name='Description')),
  32. ('p_contenu', models.TextField(blank=True, verbose_name='Contenu')),
  33. ('p_right', models.TextField(blank=True, verbose_name='Contenu à droite')),
  34. ('p_publier', models.BooleanField(default=False, verbose_name='Publié')),
  35. ('p_see_title_and_des_in_templates', models.BooleanField(default=True, verbose_name='Description et titre visible dans les templates')),
  36. ],
  37. options={
  38. 'verbose_name': 'Gestion des pages',
  39. 'verbose_name_plural': 'Gestion des pages',
  40. 'ordering': ['p_adresse'],
  41. },
  42. ),
  43. ]