-
Notifications
You must be signed in to change notification settings - Fork 301
Using a computed property as a relationship #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@cpa if your function is a property on the model then you don't want If this doesn't solve your issue I can reopen. |
Thanks for the answer! |
If you want to work on #151 help yourself :) the original submitter seem to have abandoned the request. |
Fixed by #223 |
Hello! I'm struggling to include a computed property as a relationship of my model.
I have the following models:
Now, I want my
Dataset
model to have aLanguage
relationship: it should be the list of all (distinct) languages in the sentences of my dataset.I tried to add:
in my Dataset model definition and
in my DataSerializer, but to no avail (getting
AttributeError: 'property' object has no attribute 'parent'
). What is the correct way to go? Thanks!The text was updated successfully, but these errors were encountered: