Slugify fails when field default returns false for not x:

Issue #39 new
Chris Mitchell created an issue

With using unqiue_with, there is a call to generate_uniqueness_lookup. In here, this code is executed: value = getattr(instance, field_name) if not value:

for cases where the default value, such as in an IntegerField is 0, this will erroneously return False and trigger this error.

Comments (0)

  1. Log in to comment