-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mik3y/mikey/fixups
Various modest improvements
- Loading branch information
Showing
6 changed files
with
135 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Changelog | ||
|
||
## Current version (in development) | ||
|
||
* Breaking change: Providing both `default` and `randomize` is not alowed. | ||
* Breaking change: Illegal values now throw `django.db.utils.ProgrammingError` | ||
* The `randomize` feature now uses the `secrets` module. | ||
* Fields now expose `.re` and `.validate_string(strval)` to assist with validation. | ||
* Symbols are now exported from the top-level `django_spicy_id` module. | ||
|
||
## v0.2.2 (2022-12-14) | ||
|
||
* First official release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from .errors import MalformedSpicyIdError, SpicyIdError | ||
from .fields import ( | ||
ENCODING_BASE_58, | ||
ENCODING_BASE_62, | ||
ENCODING_HEX, | ||
SpicyAutoField, | ||
SpicyBigAutoField, | ||
SpicySmallAutoField, | ||
) | ||
|
||
__all__ = [ | ||
SpicySmallAutoField, | ||
SpicyAutoField, | ||
SpicyBigAutoField, | ||
ENCODING_BASE_58, | ||
ENCODING_HEX, | ||
ENCODING_BASE_62, | ||
SpicyIdError, | ||
MalformedSpicyIdError, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters