mirror of
https://github.com/ansible/awx.git
synced 2026-06-30 19:08:02 -02:30
In order to not worry about long usernames when deleting objects, just rename fields to include the date
and include the name/description in the new description when deleting objects. Also updated deletion script to understand that.
This commit is contained in:
@@ -55,7 +55,7 @@ class Command(BaseCommand):
|
||||
return
|
||||
qs = model.objects.filter(**{
|
||||
active_field: False,
|
||||
'%s__startswith' % name_field: '_deleted_',
|
||||
'%s__startswith' % name_field: '_d',
|
||||
})
|
||||
self.logger.debug('cleaning up model %s', model)
|
||||
for instance in qs:
|
||||
|
||||
Reference in New Issue
Block a user