from django import forms
from ...product.models import Collection


class CollectionForm(forms.ModelForm):
    class Meta:
        model = Collection
        exclude = []

@@ -2,27 +2,99 @@
 rom 
-django import forms
+unidecode import unidecode%0A%0Afrom django import forms%0Afrom django.utils.text import slugify%0A
 %0Afro
@@ -238,6 +238,199 @@
  = %5B
-%5D
+'slug'%5D%0A%0A    def save(self, commit=True):%0A        self.instance.slug = slugify(unidecode(self.instance.name))%0A        super(CollectionForm, self).save(commit=commit)%0A        return self.instance
 %0A

Update CollectionForm to handle slug field