You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In hashid_field/hashid.py I think it should read like:
value = self.decode(id)
# NB value could be zero
if value is not None:
self._id = value
self._hashid = id
else if value=0 like it would be for an AutoField starting from zero, then decode appears to fail and it leads to valueerror even though the decode actually returned a non-null value
The text was updated successfully, but these errors were encountered:
In hashid_field/hashid.py I think it should read like:
else if
value=0
like it would be for an AutoField starting from zero, then decode appears to fail and it leads to valueerror even though the decode actually returned a non-null valueThe text was updated successfully, but these errors were encountered: