0002_acl_version_tracker.py 537 B

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