Commits

Andy Mikhailenko  committed bb8ff86

Fixed issue #12, thanks to Thomas Woolford.

  • Participants
  • Parent commits 6feb1c1

Comments (0)

Files changed (4)

 * Johan Charpentier
 * Nicolás Echániz
 * Aaron VanDerlip
+* Thomas Woolford
 * Jannis Leidel
 * Your Name Here ;)

File autoslug/fields.py

     def south_field_triple(self):
         "Returns a suitable description of this field for South."
         args, kwargs = introspector(self)
-        kwargs.update({'populate_from': 'None', 'unique_with': '()'})
+        kwargs.update({
+            'populate_from': 'None' if callable(self.populate_from) else repr(self.populate_from),
+            'unique_with': repr(self.unique_with)
+        })
         return ('autoslug.fields.AutoSlugField', args, kwargs)
 # All configuration values have a default; values that are commented out
 # serve to show the default.
 
-VERSION = '1.6.0'
+VERSION = '1.6.1'
 
 import sys, os
 
 
 setup(
     name     = 'django-autoslug',
-    version  = '1.6.0',  # also update doc/conf.py:version
+    version  = '1.6.1',  # also update doc/conf.py:version
     packages = ['autoslug'],
 
     requires = ['python (>= 2.4)', 'django (>= 1.0)'],