0002_acl_version_tracker.py 496 B

1234567891011121314151617181920
  1. from django.db import migrations
  2. from misago.acl.constants import ACL_CACHEBUSTER
  3. from misago.core.migrationutils import cachebuster_register_cache
  4. def register_acl_version_tracker(apps, schema_editor):
  5. cachebuster_register_cache(apps, ACL_CACHEBUSTER)
  6. class Migration(migrations.Migration):
  7. dependencies = [
  8. ('misago_acl', '0001_initial'),
  9. ('misago_core', '0001_initial'),
  10. ]
  11. operations = [
  12. migrations.RunPython(register_acl_version_tracker),
  13. ]