Replies: 1 comment 2 replies
-
@Edw125 Hi - I think it's almost there. I can just spot one minor issue. cohort = await Cohort.objects().get_or_create(
(Cohort.number == str(array[5])) & (Cohort.course.id == int(course.id))
) With Does that work for you? If not, can you provide what error is raised? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone! I work with this framework recently and I have question: how to build a query that will filter objects Cohort by foreignkey field Cohort.course? In the photo, my request gives an error. Please tell me how to solve
Beta Was this translation helpful? Give feedback.
All reactions