Skip to content

Instantly share code, notes, and snippets.

@Ch00k
Created November 7, 2014 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ch00k/a8089fd32eed628489a8 to your computer and use it in GitHub Desktop.
Save Ch00k/a8089fd32eed628489a8 to your computer and use it in GitHub Desktop.
ArgumentError: Could not locate any simple equality expressions involving locally mapped foreign key columns for primary join condition 'pk_movie.id = show_time.pk_movie_id AND show_time.datetime >= CURRENT_TIMESTAMP' on relationship PKMovie.future_show_times. Ensure that referencing columns are associated with a ForeignKey or ForeignKeyConstraint, or are annotated in the join condition with the foreign() annotation. To allow comparison operators other than '==', the relationship can be marked as viewonly=True.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment