File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 24
24
author = 'Andy Byers, Mauro Sanchez & Martin Paul Eve'
25
25
26
26
# The short X.Y version
27
- version = '1.7.4 '
27
+ version = '1.7.5 '
28
28
# The full version, including alpha/beta/rc tags
29
- release = '1.7.4 '
29
+ release = '1.7.5 '
30
30
31
31
# -- General configuration ---------------------------------------------------
32
32
Original file line number Diff line number Diff line change 1
1
from packaging import version
2
- __version__ = version .parse ("1.7.4 " )
2
+ __version__ = version .parse ("1.7.5 " )
Original file line number Diff line number Diff line change
1
+ # Generated by Django 4.2.15 on 2024-10-25 14:18
2
+
3
+ from django .db import migrations , models
4
+ from django .utils import timezone
5
+
6
+ VERSION = "1.7.5"
7
+
8
+
9
+ def rollback (apps , schema_editor ):
10
+ version_model = apps .get_model ("utils" , "Version" )
11
+ latest_version = version_model .objects .get (number = VERSION , rollback = None )
12
+ latest_version .rollback = timezone .now ()
13
+ latest_version .save ()
14
+
15
+
16
+ def upgrade (apps , schema_editor ):
17
+ version_model = apps .get_model ("utils" , "Version" )
18
+ new_version = version_model .objects .create (number = VERSION )
19
+ new_version .save ()
20
+
21
+
22
+ class Migration (migrations .Migration ):
23
+
24
+ dependencies = [
25
+ ('utils' , '0039_upgrade_1_7_4' ),
26
+ ]
27
+
28
+ operations = [
29
+ migrations .RunPython (upgrade , reverse_code = rollback ),
30
+ ]
You can’t perform that action at this time.
0 commit comments