Luke Plant avatar Luke Plant committed 22ec1f5

Updated README

Comments (0)

Files changed (1)

   The 'attributes' dictionary is the key attribute to edit. The keys are the
   attribute names of attributes on the model that need to be set.  The values
   are either strings or callables. If strings, they will be interpreted as a
-  function in the module ``anonymizers.replacers``. If callables, they should
-  have a signature compatible with those callables. You can use ``lambda *args:
+  function in the module ``anonymizer.replacers``. This module can be browsed
+  to find suitable functions to use to anonymize data.
+  If callables are used as the keys, they should have a signature compatible
+  with the callables in ``anonymizer.replacers``. You can use ``lambda *args:
   my_constant_value`` to return a constant.
   For some fields, you will want to remove them from the list of attributes, so
               'first_name': 'first_name',
               'last_name':  'last_name',
               'email':      'email',
-              # Set the date_joined to a similar time to when they actually
-              # joined, by passing the 'val' parameter to faker.datetime
-              'date_joined': lambda self, obj, field, val: self.faker.datetime(field=field, val=val),
+              'date_joined': 'similar_datetime'
               # Set to today:
               'last_login': lambda *args:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.