示例#1
0
class Migration(migrations.Migration):

    dependencies = [("people", "0005_auto_20151221_1217")]

    operations = [
        migrations.AlterField(
            model_name="phonenumber",
            name="number",
            field=directory._localflav(max_length=32),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="postal_code",
            field=directory._localflav(blank=True, max_length=16),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="region",
            field=directory._localflav(
                blank=True,
                help_text=b"Provinces in Canada, States for U.S.A.",
                max_length=64,
            ),
        ),
    ]
示例#2
0
class Migration(migrations.Migration):

    dependencies = [("people", "0007_auto_20160317_1058")]

    operations = [
        migrations.AlterField(
            model_name="contactinfotype",
            name="slug",
            field=autoslug.fields.AutoSlugField(
                editable=False,
                max_length=32,
                populate_from=b"verbose_name_plural"),
        ),
        migrations.AlterField(
            model_name="person",
            name="slug",
            field=autoslug.fields.AutoSlugField(
                blank=True,
                editable=False,
                help_text=b"A url fragment for this person, if required.",
                null=True,
                populate_from=people.conf.get("person:slug:populate_from"),
                unique=True,
            ),
        ),
        migrations.AlterField(
            model_name="personflag",
            name="slug",
            field=autoslug.fields.AutoSlugField(
                editable=False,
                max_length=64,
                populate_from=b"verbose_name",
                unique=True,
            ),
        ),
        migrations.AlterField(
            model_name="phonenumber",
            name="number",
            field=directory._localflav(max_length=32),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="postal_code",
            field=directory._localflav(blank=True, max_length=16),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="region",
            field=directory._localflav(
                blank=True,
                help_text=b"Provinces in Canada, States for U.S.A.",
                max_length=64,
            ),
        ),
    ]
示例#3
0
class Migration(migrations.Migration):

    dependencies = [("places", "0001_initial")]

    operations = [
        migrations.AlterField(
            model_name="office",
            name="phone_number",
            field=directory._localflav(blank=True, max_length=32),
        )
    ]
示例#4
0
class Migration(migrations.Migration):

    dependencies = [("people", "0013_auto_20170920_1048")]

    operations = [
        migrations.AlterModelOptions(
            name="personkey",
            options={
                "base_manager_name": "objects",
                "ordering": ["verbose_name"],
                "verbose_name": "additional person field",
            },
        ),
        migrations.AlterModelOptions(
            name="personkeyvalue",
            options={
                "base_manager_name": "objects",
                "verbose_name": "additional data",
                "verbose_name_plural": "additional data",
            },
        ),
        migrations.AlterField(
            model_name="phonenumber",
            name="number",
            field=directory._localflav(max_length=32),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="postal_code",
            field=directory._localflav(blank=True, max_length=16),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="region",
            field=directory._localflav(
                blank=True,
                help_text="Provinces in Canada, States for U.S.A.",
                max_length=64,
            ),
        ),
    ]
示例#5
0
class Migration(migrations.Migration):

    dependencies = [("directory", "0005_auto_20160126_1350")]

    operations = [
        migrations.AlterModelOptions(
            name="directoryentry",
            options={
                "base_manager_name": "objects",
                "ordering": ["type", "ordering", "person"],
                "verbose_name_plural": "directory entries",
            },
        ),
        migrations.AlterModelOptions(
            name="entrytype",
            options={
                "base_manager_name": "objects",
                "ordering": ["ordering", "verbose_name"],
            },
        ),
        migrations.AlterField(
            model_name="directoryentry",
            name="office",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to="places.Office",
            ),
        ),
        migrations.AlterField(
            model_name="directoryentry",
            name="phone_number",
            field=directory._localflav(
                blank=True,
                default=b"",
                help_text=
                b"(Optional) if not given, the office's phone number will be used.",
                max_length=32,
            ),
        ),
        migrations.AlterField(
            model_name="directoryentry",
            name="type",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                to="directory.EntryType"),
        ),
    ]
示例#6
0
class Migration(migrations.Migration):

    dependencies = [("directory", "0004_auto_20151221_1217")]

    operations = [
        migrations.AlterField(
            model_name="directoryentry",
            name="phone_number",
            field=directory._localflav(
                blank=True,
                default=b"",
                help_text=b"(Optional) if not given, the office's phone number will be used.",
                max_length=32,
            ),
        )
    ]
class Migration(migrations.Migration):

    dependencies = [("people", "0009_auto_20170602_1100")]

    operations = [
        migrations.AlterField(
            model_name="contactinfotype",
            name="slug",
            field=autoslug.fields.AutoSlugField(
                editable=False,
                max_length=32,
                populate_from="verbose_name_plural"),
        ),
        migrations.AlterField(
            model_name="emailaddress",
            name="created",
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name="creation time"),
        ),
        migrations.AlterField(
            model_name="emailaddress",
            name="modified",
            field=models.DateTimeField(auto_now=True,
                                       verbose_name="last modification time"),
        ),
        migrations.AlterField(
            model_name="emailconfirmation",
            name="created",
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name="creation time"),
        ),
        migrations.AlterField(
            model_name="emailconfirmation",
            name="delete_unverified",
            field=models.BooleanField(
                default=False,
                help_text=
                "If this is set, unverified email addresses and people objects will be deleted",
            ),
        ),
        migrations.AlterField(
            model_name="emailconfirmation",
            name="email_send_time",
            field=models.DateTimeField(
                help_text=
                "If this is not set, the verification email has <em>not</em> been sent.",
                null=True,
            ),
        ),
        migrations.AlterField(
            model_name="emailconfirmation",
            name="modified",
            field=models.DateTimeField(auto_now=True,
                                       verbose_name="last modification time"),
        ),
        migrations.AlterField(
            model_name="person",
            name="birthday",
            field=models.DateField(
                blank=True,
                help_text="If this is not required, just leave this blank.",
                null=True,
            ),
        ),
        migrations.AlterField(
            model_name="person",
            name="cn",
            field=models.CharField(
                blank=True,
                help_text=
                "This is how the person's name will appear in the site.\n                                    Leave this blank to use given name + family name.\n                                    ",
                max_length=100,
                verbose_name="common name",
            ),
        ),
        migrations.AlterField(
            model_name="person",
            name="company",
            field=models.CharField(
                blank=True,
                help_text="The company this person if affiliated with.",
                max_length=64,
            ),
        ),
        migrations.AlterField(
            model_name="person",
            name="created",
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name="creation time"),
        ),
        migrations.AlterField(
            model_name="person",
            name="given_name",
            field=models.CharField(
                help_text=
                "Typically how the person prefers to be addressed, informally.",
                max_length=64,
            ),
        ),
        migrations.AlterField(
            model_name="person",
            name="modified",
            field=models.DateTimeField(auto_now=True,
                                       verbose_name="last modification time"),
        ),
        migrations.AlterField(
            model_name="person",
            name="slug",
            field=autoslug.fields.AutoSlugField(
                blank=True,
                editable=False,
                help_text="A url fragment for this person, if required.",
                null=True,
                populate_from="cn",
                unique=True,
            ),
        ),
        migrations.AlterField(
            model_name="person",
            name="sn",
            field=models.CharField(
                help_text=
                "This will determine how this person gets sorted in lists or people.",
                max_length=64,
                verbose_name="family name",
            ),
        ),
        migrations.AlterField(
            model_name="person",
            name="sync_name",
            field=models.BooleanField(
                default=True,
                help_text=
                "Synchronize name information with corresponding user model",
                verbose_name="sync name with user",
            ),
        ),
        migrations.AlterField(
            model_name="person",
            name="title",
            field=models.CharField(blank=True,
                                   help_text="A personal title or job title.",
                                   max_length=64),
        ),
        migrations.AlterField(
            model_name="person",
            name="username",
            field=models.CharField(
                blank=True,
                db_index=True,
                help_text=
                "Username on the local system, if the person has one. 64 characters or fewer. Letters, numbers and @/./+/-/_ characters",
                max_length=64,
                null=True,
                unique=True,
                validators=[
                    django.core.validators.RegexValidator(
                        re.compile("^[\\w.@+-]+$", 32),
                        "Enter a valid username.",
                        "invalid",
                    )
                ],
            ),
        ),
        migrations.AlterField(
            model_name="personflag",
            name="created",
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name="creation time"),
        ),
        migrations.AlterField(
            model_name="personflag",
            name="modified",
            field=models.DateTimeField(auto_now=True,
                                       verbose_name="last modification time"),
        ),
        migrations.AlterField(
            model_name="personflag",
            name="slug",
            field=autoslug.fields.AutoSlugField(editable=False,
                                                max_length=64,
                                                populate_from="verbose_name",
                                                unique=True),
        ),
        migrations.AlterField(
            model_name="phonenumber",
            name="created",
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name="creation time"),
        ),
        migrations.AlterField(
            model_name="phonenumber",
            name="modified",
            field=models.DateTimeField(auto_now=True,
                                       verbose_name="last modification time"),
        ),
        migrations.AlterField(
            model_name="phonenumber",
            name="number",
            field=directory._localflav(max_length=32),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="city",
            field=models.CharField(blank=True,
                                   help_text="(Township, Municipality, etc.)",
                                   max_length=64),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="created",
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name="creation time"),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="modified",
            field=models.DateTimeField(auto_now=True,
                                       verbose_name="last modification time"),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="postal_code",
            field=directory._localflav(blank=True, max_length=16),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="region",
            field=directory._localflav(
                blank=True,
                help_text="Provinces in Canada, States for U.S.A.",
                max_length=64,
            ),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="street_2",
            field=models.CharField(blank=True,
                                   help_text="Optional",
                                   max_length=128),
        ),
        migrations.AlterUniqueTogether(name="emailaddress",
                                       unique_together=set([("person",
                                                             "address")])),
    ]
class Migration(migrations.Migration):

    dependencies = [("people", "0008_auto_20170306_1402")]

    operations = [
        migrations.AlterModelOptions(
            name="emailaddress",
            options={
                "base_manager_name": "objects",
                "ordering": ["-public", "-preferred", "-verified", "address"],
                "verbose_name_plural": "email addresses",
            },
        ),
        migrations.AlterModelOptions(
            name="person",
            options={
                "base_manager_name": "objects",
                "ordering": ["sn", "given_name"],
                "verbose_name_plural": "people",
            },
        ),
        migrations.AlterModelOptions(
            name="personflag",
            options={
                "base_manager_name": "objects",
                "ordering": ["verbose_name"]
            },
        ),
        migrations.AlterModelOptions(name="phonenumber",
                                     options={"base_manager_name": "objects"}),
        migrations.AlterModelOptions(
            name="streetaddress",
            options={
                "base_manager_name": "objects",
                "verbose_name_plural": "street addresses",
            },
        ),
        migrations.AlterField(
            model_name="emailaddress",
            name="type",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                to="people.ContactInfoType"),
        ),
        migrations.AlterField(
            model_name="phonenumber",
            name="number",
            field=directory._localflav(max_length=32),
        ),
        migrations.AlterField(
            model_name="phonenumber",
            name="type",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                to="people.ContactInfoType"),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="postal_code",
            field=directory._localflav(blank=True, max_length=16),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="region",
            field=directory._localflav(
                blank=True,
                help_text=b"Provinces in Canada, States for U.S.A.",
                max_length=64,
            ),
        ),
        migrations.AlterField(
            model_name="streetaddress",
            name="type",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                to="people.ContactInfoType"),
        ),
    ]