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.

38 lines
1.1 KiB

  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import migrations, models
  4. from django.conf import settings
  5. class Migration(migrations.Migration):
  6. dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
  7. operations = [
  8. migrations.CreateModel(
  9. name="Profile",
  10. fields=[
  11. (
  12. "id",
  13. models.AutoField(
  14. auto_created=True,
  15. serialize=False,
  16. verbose_name="ID",
  17. primary_key=True,
  18. ),
  19. ),
  20. ("next_report_date", models.DateTimeField(null=True, blank=True)),
  21. ("reports_allowed", models.BooleanField(default=True)),
  22. (
  23. "user",
  24. models.OneToOneField(
  25. blank=True,
  26. to=settings.AUTH_USER_MODEL,
  27. null=True,
  28. on_delete=models.CASCADE,
  29. ),
  30. ),
  31. ],
  32. )
  33. ]