Skip to content

Commit 7939a7e

Browse files
committed
feat: fixing readme
1 parent 1a91e72 commit 7939a7e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.README.md.swp

16 KB
Binary file not shown.

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ class IntSequenceModel(models.Model):
6363

6464
### Simple AlphaNumeric Example
6565
Just add an AlphaNumericSequenceField field(s) to your models like this.
66-
You can provide a "format" argument to define how to convert the number to char. The syntax is the one used in postgres to_char function ([see here](https://www.postgresql.org/docs/current/functions-formatting.html))
66+
You can provide a "format" argument to define how to convert the number to char. The syntax is the one used in postgres to_char function ([see here](https://www.postgresql.org/docs/current/functions-formatting.html)). In the example bellow, we will get sequence values: INV_000001, INV_000002, INV_000003, ...
67+
68+
```python
69+
from django.db import models
70+
from sequencefield.constraints import IntSequenceConstraint
71+
from sequencefield.fields import AlphaNumericSequenceField
6772

6873
class AlphaNumericSequenceModel(models.Model):
6974
seqid = AlphaNumericSequenceField(

sequencefield/metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
__email__ = "[email protected]"
1111
__license__ = "MIT"
1212
__title__ = "django-sequencefield"
13-
__version__ = "1.0.7"
13+
__version__ = "1.0.8"

0 commit comments

Comments
 (0)