django-polymorphic icon indicating copy to clipboard operation
django-polymorphic copied to clipboard

Calculated Field not found

Open schacki opened this issue 4 years ago • 1 comments

Hi all,

I do have a calculated field current_location on my base model, created a method current_location() on the PolymorphicChildModelAdmin and added it to based_fieldset of PolymorphicChildModelAdmin.

However, it throws an error when opening the detail page with: ""Key 'current_location' not found in 'ComputerForm'. Choices are: ..."

Is this a bug?

Regards

schacki avatar Feb 11 '21 16:02 schacki

Hey @schacki I'm unclear on the behaviour you're describing. Do you have the ability to write a failing unit test to show the issue you're having?

AdamDonna avatar Apr 20 '21 13:04 AdamDonna