Postfix's Transport Encryption under Control of the User
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0001_initial.py 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. import django.utils.timezone
  5. import django.contrib.auth.models
  6. import django.core.validators
  7. class Migration(migrations.Migration):
  8. dependencies = [
  9. ('auth', '0006_require_contenttypes_0002'),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='User',
  14. fields=[
  15. ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
  16. ('password', models.CharField(max_length=128, verbose_name='password')),
  17. ('last_login', models.DateTimeField(null=True, verbose_name='last login', blank=True)),
  18. ('is_superuser', models.BooleanField(verbose_name='superuser status', default=False, help_text='Designates that this user has all permissions without explicitly assigning them.')),
  19. ('username', models.CharField(verbose_name='username', help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', error_messages={'unique': 'A user with that username already exists.'}, unique=True, max_length=30, validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.', 'invalid')])),
  20. ('first_name', models.CharField(max_length=30, verbose_name='first name', blank=True)),
  21. ('last_name', models.CharField(max_length=30, verbose_name='last name', blank=True)),
  22. ('email', models.EmailField(max_length=254, verbose_name='email address', blank=True)),
  23. ('is_staff', models.BooleanField(verbose_name='staff status', default=False, help_text='Designates whether the user can log into this admin site.')),
  24. ('is_active', models.BooleanField(verbose_name='active', default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.')),
  25. ('date_joined', models.DateTimeField(verbose_name='date joined', default=django.utils.timezone.now)),
  26. ('groups', models.ManyToManyField(verbose_name='groups', related_name='user_set', help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', to='auth.Group', blank=True, related_query_name='user')),
  27. ('user_permissions', models.ManyToManyField(verbose_name='user permissions', related_name='user_set', help_text='Specific permissions for this user.', to='auth.Permission', blank=True, related_query_name='user')),
  28. ],
  29. options={
  30. 'verbose_name': 'user',
  31. 'verbose_name_plural': 'users',
  32. 'abstract': False,
  33. },
  34. managers=[
  35. ('objects', django.contrib.auth.models.UserManager()),
  36. ],
  37. ),
  38. ]