1. Luke Plant
  2. django-anonymizer

Commits

Luke Plant  committed f9d8e27

Added 'uk_country' source

  • Participants
  • Parent commits 7a60b12
  • Branches default

Comments (0)

Files changed (1)

File anonymizer/base.py

View file
         source = lambda: random.choice(data.UK_COUNTIES)
         return self._get_allowed_value(source, field)
 
+    def uk_country(self, field=None):
+        source = lambda: random.choice(data.UK_COUNTRIES)
+        return self._get_allowed_value(source, field)
+
     ## Other attributes provided by 'Faker':
 
     # username