diff --git a/categories/admin.py b/categories/admin.py
index <HASH>..<HASH> 100644
--- a/categories/admin.py
+++ b/categories/admin.py
@@ -31,7 +31,7 @@ class CategoryAdminForm(forms.ModelForm):
         model = Category
     
     def clean_slug(self):
-        if self.instance is None or ALLOW_SLUG_CHANGE:
+        if self.instance is None or not ALLOW_SLUG_CHANGE:
             self.cleaned_data['slug'] = slugify(self.cleaned_data['name'])
         return self.cleaned_data['slug']
     
diff --git a/sample/settings.py b/sample/settings.py
index <HASH>..<HASH> 100644
--- a/sample/settings.py
+++ b/sample/settings.py
@@ -84,4 +84,5 @@ INSTALLED_APPS = (
     'editor',
     'mptt',
 )
-EDITOR_MEDIA_PATH = '/static/editor/'
\ No newline at end of file
+EDITOR_MEDIA_PATH = '/static/editor/'
+CATEGORIES_ALLOW_SLUG_CHANGE = True
\ No newline at end of file
Finished the debugging and changed the logic