@@ -92,6 +92,10 @@ def add_arguments(self, subparsers):
9292 choices = ['source' , 'hash' ],
9393 help = ('Use "hash" or "source" based keys (default: source)' ),
9494 )
95+ parser .add_argument (
96+ '--force-source-update' , action = 'store_true' , dest = 'force_source_update' , default = False ,
97+ help = ('Force the update of the source strings' ),
98+ )
9599
96100 def handle (self , * args , ** options ):
97101 self .verbose_output = options ['verbose_output' ]
@@ -108,6 +112,7 @@ def handle(self, *args, **options):
108112 self .do_not_keep_translations = options ['do_not_keep_translations' ]
109113 self .no_wait = options ['no_wait' ]
110114 self .key_generator = options ['key_generator' ]
115+ self .force_source_update = options ['force_source_update' ]
111116 extensions = options ['extensions' ]
112117 if self .domain == 'djangojs' :
113118 exts = extensions if extensions else ['js' ]
@@ -200,7 +205,7 @@ def push_strings(self):
200205 status_code , response_content = tx .push_source_strings (
201206 self .string_collection .strings .values (), self .purge ,
202207 self .do_not_keep_translations , self .override_tags ,
203- self .override_occurrences
208+ self .override_occurrences , self . force_source_update
204209 )
205210
206211 if self .no_wait :
0 commit comments