Skip to content

Commit fe538d1

Browse files
committed
Don't override manager if it's in the arguments.
Fixes: https://bitbucket.org/neithere/django-autoslug/issues/34/django-migrations-fail-i
1 parent 6bcbf04 commit fe538d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoslug/fields.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ def deconstruct(self):
244244
if self.always_update:
245245
kwargs['always_update'] = self.always_update
246246

247+
if 'manager' in kwargs:
248+
del kwargs['manager']
249+
247250
return name, path, args, kwargs
248251

249252
def pre_save(self, instance, add):

0 commit comments

Comments
 (0)