Debian Codegraph @

tests/custom_migration_operations/more_operations.py

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