Commits

Maciej Wiśniowski committed 52cdb6b

fix bug causing strange behaviour while creating variants

Comments (0)

Files changed (1)

lfs/manage/views/product/variants.py

         variant = None
         # need to validate the amalgamated slug to make sure it is not already in use
         try:
-            product = Product.objects.get(slug=slug)
+            variant = Product.objects.get(slug=slug)
             message = _(u"That slug is already in use. Please use another.")
         except Product.MultipleObjectsReturned:
             message = _(u"That slug is already in use. Please use another.")