Skip to content

Commit

Permalink
Merge pull request #7 from hoylemd/patch-1
Browse files Browse the repository at this point in the history
fix some minor typos in Field option examples
  • Loading branch information
neithere committed May 4, 2016
2 parents 6bcbf04 + 9ae616a commit fb62460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoslug/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ class Article(models.Model):
# ensure that slug is unique with given date AND category
slug = AutoSlugField(unique_with=('pub_date','category'))
# ensure that slug in unique with an external object
# ensure that slug is unique with an external object
# assuming that author=ForeignKey(Author)
slug = AutoSlugField(unique_with='author')
# ensure that slug in unique with a subset of external objects (by lookups)
# ensure that slug is unique with a subset of external objects (by lookups)
# assuming that author=ForeignKey(Author)
slug = AutoSlugField(unique_with='author__name')
Expand Down

0 comments on commit fb62460

Please sign in to comment.