Skip to content

Commit

Permalink
BigIntegerField -> PositiveBigIntegerField (resolves #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
samirelanduk committed Feb 12, 2024
1 parent b71dd0c commit edf3b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_random_id_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RandomIDModel(models.Model):
class Meta:
abstract = True

id = models.BigIntegerField(primary_key=True)
id = models.PositiveBigIntegerField(primary_key=True)

def save(self, *args, **kwargs):
"""If the user hasn't provided an ID, generate one at random and check
Expand Down

0 comments on commit edf3b14

Please sign in to comment.