Commits

Kai Diefenbach  committed 3421f29

Check whether there is a format given (this must be checked for validity though).

  • Participants
  • Parent commits 3cac606

Comments (0)

Files changed (1)

File lfs_order_numbers/models.py

         """
         self.last += 1
         self.save()
-        if formatted:
+        if formatted and self.format:
             return self.format % self.last
         else:
             return self.last