Commits

Andy Mikhailenko  committed 2ea3831

Updated documentation concerning populate_from.

  • Participants
  • Parent commits 2e8b9c3

Comments (0)

Files changed (1)

File autoslug/fields.py

         # minimum date granularity is shifted from day to month
         slug = AutoSlugField(populate_from='title', unique_with='pub_date__month')
 
-        # autoslugify value from a dynamic attribute using callable
+        # autoslugify value from a dynamic attribute (i.e. a method)
+        slug = AutoSlugField(populate_from='get_full_name')
+
+        # autoslugify value from a custom callable
         # (ex. usage: user profile models)
         slug = AutoSlugField(populate_from=lambda instance: instance.user.get_full_name())
     """