Skip to content

Commit

Permalink
bugfix: base should not inherit from BigAutoField
Browse files Browse the repository at this point in the history
  • Loading branch information
mik3y committed Aug 6, 2023
1 parent c05fd23 commit 111d520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_spicy_id/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_regex(preamble, codec, pad, char_len):
return re.compile(f"^({escaped_preamble})([{digits}]{{{char_len}}})$")


class BaseSpicyAutoField(models.BigAutoField):
class BaseSpicyAutoField(models.Field):
"""An AutoField that is rendered as a prefixed string."""

NUM_BITS = None # Must be defined in subclasses.
Expand Down

0 comments on commit 111d520

Please sign in to comment.