Skip to content

Commit

Permalink
Merge pull request #47 from hintofbasil/master
Browse files Browse the repository at this point in the history
Fixed missing parenthesis on random.random
  • Loading branch information
GeyseR committed Apr 12, 2016
2 parents 04c1be2 + d41fed1 commit 902507a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_any/models.py
Expand Up @@ -46,7 +46,7 @@ def wrapper(field, **kwargs):
if kwargs.get('isnull', False):
return None

if field.blank and random.random < 0.1:
if field.blank and random.random() < 0.1:
return None
return function(field, **kwargs)
return wrapper
Expand Down

0 comments on commit 902507a

Please sign in to comment.