Commit e54dd69 1 parent 38b8f58 commit e54dd69 Copy full SHA for e54dd69
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 10
10
[ ![ ] ( https://img.shields.io/github/actions/workflow/status/quertenmont/django-sequencefield/test-package.yml?branch=main&label=build&logo=github )] ( https://github.com/quertenmont/django-sequencefield )
11
11
[ ![ ] ( https://img.shields.io/codecov/c/gh/quertenmont/django-sequencefield?logo=codecov )] ( https://codecov.io/gh/quertenmont/django-sequencefield )
12
12
[ ![ ] ( https://img.shields.io/codacy/grade/194566618f424a819ce43450ea0af081?logo=codacy )] ( https://www.codacy.com/app/quertenmont/django-sequencefield )
13
- [ ![ ] ( https://img.shields.io/codeclimate/maintainability/quertenmont/django-sequencefield?logo=code-climate )] ( https://codeclimate.com/github/quertenmont/django-sequencefield/ )
14
13
[ ![ ] ( https://img.shields.io/badge/code%20style-black-000000.svg?logo=python&logoColor=black )] ( https://github.com/psf/black )
15
14
[ ![ ] ( https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json )] ( https://github.com/astral-sh/ruff )
16
15
16
+
17
+
17
18
# sequencefield
18
19
simple model field taking it's value from a postgres sequence. This is an easy replacement for django autofield offering the following advantages:
19
20
- Sequence could be shared among multiple models (db tables), so you can now have unique id among multiple django models
@@ -85,6 +86,7 @@ class AlphaNumericSequenceModel(models.Model):
85
86
start = 1 ,
86
87
)
87
88
]
89
+ ```
88
90
89
91
### Advance Example
90
92
Just add a sequence field(s) to your models like this:
Original file line number Diff line number Diff line change 10
10
11
11
__license__ = "MIT"
12
12
__title__ = "django-sequencefield"
13
- __version__ = "1.0.10 "
13
+ __version__ = "1.0.11 "
You can’t perform that action at this time.
0 commit comments