Commits

Kai Diefenbach committed 3421f29

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

Comments (0)

Files changed (1)

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