Revert "replaced i with throwaway variable (#113)"

This would break the ugettext shortcut.

This reverts commit faf4030e91.
This commit is contained in:
Martin Mahner 2018-12-11 16:51:17 +01:00
parent 50319b269e
commit 3bfb153b74

View file

@ -22,7 +22,7 @@ def generate_secret_id(length):
) )
secret_id = ''.join( secret_id = ''.join(
[R.choice(config.SLUG_CHOICES) for _ in range(length or config.SLUG_LENGTH)] [R.choice(config.SLUG_CHOICES) for i in range(length or config.SLUG_LENGTH)]
) )
# Check if this slug already exists, if not, return this new slug # Check if this slug already exists, if not, return this new slug