You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, maybe i did'nt understand the way to handle this, however this is my case:
I have a Campaign/Action_Model one to many relationship & i want a "is_finished" field to be computed in the campaign from the related Action_Models
The computedfields resolver says the action_model_set in the Campaign model does not exist as field.
Here is the exception that is raised: File ".../site-packages/computedfields/graph.py", line 558, in resolve_dependencies descriptor = getattr(cls, symbol) AttributeError: type object 'Campaign' has no attribute 'action_model_set'
Could you tell me what i did wrong ?
The text was updated successfully, but these errors were encountered:
@sbatdkio Hmm, it works with your provided info here. Does that other file, where Action_Model is defined, reside in a different django app?
This pretty much looks like a model resolution issue - can you access action_model_set on Campaign in the shell, if you comment out the computed field temporarily? I'd guess, thats also not possible, maybe got named differently. Alternatively try using an explicit related name.
Hi, maybe i did'nt understand the way to handle this, however this is my case:
I have a Campaign/Action_Model one to many relationship & i want a "is_finished" field to be computed in the campaign from the related Action_Models
in another file , i am defining the Action_Model class
The computedfields resolver says the action_model_set in the Campaign model does not exist as field.
Here is the exception that is raised:
File ".../site-packages/computedfields/graph.py", line 558, in resolve_dependencies descriptor = getattr(cls, symbol) AttributeError: type object 'Campaign' has no attribute 'action_model_set'
Could you tell me what i did wrong ?
The text was updated successfully, but these errors were encountered: