# Generated by Django 2.2.17 on 2021-03-31 13:50 import colorful.fields from django.db import migrations, models import gestion.models class Migration(migrations.Migration): dependencies = [ ("gestion", "0002_auto_20200908_2222"), ] operations = [ migrations.CreateModel( name="Photo", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("name", models.CharField(max_length=127)), ( "cat", models.CharField( choices=[ ("home_join", "Rejoignez nous"), ("home_contact", "Nous Contacter"), ("home_rep", "Répertoire de l'acceuil"), ("login", "Connexion"), ("change_membre", "Modification du profil"), ("inscription_membre", "Inscription"), ("home", "Calendrier connecté"), ("liste", "Agenda public"), ("part", "Répertoire"), ("n", "N'apparait pas"), ], default="n", max_length=127, ), ), ( "auteur", models.CharField( blank=True, max_length=127, null=True, verbose_name="Auteur de l'image", ), ), ( "url", models.URLField( blank=True, null=True, verbose_name="Lien vers le site de l'auteur", ), ), ( "color", colorful.fields.RGBColorField( default="#ffffff", verbose_name="Couleur du nom de l'auteur" ), ), ( "image", models.ImageField( default=None, upload_to="deco", validators=[gestion.models.Photo.validate_image], ), ), ], options={ "verbose_name": "Photo", "verbose_name_plural": "Photos", }, ), ]