mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 22:05:07 -02:30
track prior organization_id by base model prior values tore
Also fix bug where unified pointers were counted in the prior values store
This commit is contained in:
@@ -290,6 +290,10 @@ class PrimordialModel(CreatedModifiedModel):
|
||||
if hasattr(field, 'attname'):
|
||||
if field.attname == 'id':
|
||||
continue
|
||||
elif field.attname.endswith('ptr_id'):
|
||||
# polymorphic fields should always be non-editable, see:
|
||||
# https://github.com/django-polymorphic/django-polymorphic/issues/349
|
||||
continue
|
||||
if getattr(field, 'editable', True):
|
||||
fds.add(field.attname)
|
||||
return fds
|
||||
|
||||
Reference in New Issue
Block a user