pcari.management.commands.cleantext module¶
Utility for batch-cleaning text fields from the command line
-
class
pcari.management.commands.cleantext.
Command
(stdout=None, stderr=None, no_color=False)¶ Bases:
pcari.management.commands.BatchProcessingCommand
This command performs basic text cleaning on fields specified by the user.
-
help
= 'Cleans character and text fields'¶
-
precondition_check
(options, model, field)¶ Verify the field contains text and is compatible with the empty value.
-
process
(options, instance, model_name, field_name)¶ Clean leading and trailing whitespace and replace empty strings.
-