0002_acl_version_tracker.py 589 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. #pylint: skip-file
  3. from __future__ import unicode_literals
  4. from django.db import migrations, models
  5. from misago.core.migrationutils import cachebuster_register_cache
  6. from misago.acl.constants import ACL_CACHEBUSTER
  7. def register_acl_version_tracker(apps, schema_editor):
  8. cachebuster_register_cache(apps, ACL_CACHEBUSTER)
  9. class Migration(migrations.Migration):
  10. dependencies = [
  11. ('misago_acl', '0001_initial'),
  12. ('misago_core', '0001_initial'),
  13. ]
  14. operations = [
  15. migrations.RunPython(register_acl_version_tracker),
  16. ]