0007_auto_20200619_1459.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Generated by Django 3.0.7 on 2020-06-19 14:59
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ('organizations_ext', '0006_organization_open_membership'),
  9. ]
  10. operations = [
  11. migrations.AddField(
  12. model_name='organizationuser',
  13. name='email',
  14. field=models.EmailField(blank=True, help_text='Email for pending invite', max_length=254, null=True),
  15. ),
  16. migrations.AddField(
  17. model_name='organizationuser',
  18. name='pending',
  19. field=models.BooleanField(default=True),
  20. ),
  21. migrations.AlterField(
  22. model_name='organizationuser',
  23. name='user',
  24. field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='organizations_ext_organizationuser', to=settings.AUTH_USER_MODEL),
  25. ),
  26. migrations.AlterUniqueTogether(
  27. name='organizationuser',
  28. unique_together={('email', 'organization'), ('user', 'organization')},
  29. ),
  30. ]