2
0

0013_person_lockablemixin.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Generated by Django 4.2 on 2023-05-15 10:31
  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. ("base", "0012_person_expire_at_person_expired_and_more"),
  9. ]
  10. operations = [
  11. migrations.AddField(
  12. model_name="person",
  13. name="locked",
  14. field=models.BooleanField(
  15. default=False, editable=False, verbose_name="locked"
  16. ),
  17. ),
  18. migrations.AddField(
  19. model_name="person",
  20. name="locked_at",
  21. field=models.DateTimeField(
  22. editable=False, null=True, verbose_name="locked at"
  23. ),
  24. ),
  25. migrations.AddField(
  26. model_name="person",
  27. name="locked_by",
  28. field=models.ForeignKey(
  29. blank=True,
  30. editable=False,
  31. null=True,
  32. on_delete=django.db.models.deletion.SET_NULL,
  33. related_name="locked_%(class)ss",
  34. to=settings.AUTH_USER_MODEL,
  35. verbose_name="locked by",
  36. ),
  37. ),
  38. ]