more_operations.py 584 B

12345678910111213141516171819202122232425
  1. from django.db.migrations.operations.base import Operation
  2. class TestOperation(Operation):
  3. def __init__(self):
  4. pass
  5. def deconstruct(self):
  6. return (self.__class__.__name__, [], {})
  7. @property
  8. def reversible(self):
  9. return True
  10. def state_forwards(self, app_label, state):
  11. pass
  12. def database_forwards(self, app_label, schema_editor, from_state, to_state):
  13. pass
  14. def state_backwards(self, app_label, state):
  15. pass
  16. def database_backwards(self, app_label, schema_editor, from_state, to_state):
  17. pass