Comments (1)
回答モデルをORMで一発で絞り込む方法
一発では絞れなかった。。。以下代替案
- ESに紐付いている質問に紐付いている回答を絞る
- for文で
answer.version
とquestion.selected_version
が一致がする回答のPKをanswers(リスト)に保存 AnswerModel.objects.get(pk__in=answers).order_by('question__pk')
from esuits_junki.
Related Issues (16)
- herokuでメモリ不足で修正後のアプリをデプロイできない HOT 2
- 異なる企業で同一のURLを使用すると編集画面に遷移するときにエラーが発生
- 一つの企業に対して複数のURLが紐付けられたときにES編集画面でエラー HOT 1
- 作成→編集のときに画面遷移が遅い HOT 3
- 一度作成したESに再度アクセスしたときに質問と回答の組み合わせがバラバラになっていることがある HOT 1
- 編集機能・削除機能が実装されていない HOT 1
- 編集画面で文字数を確認できるようにする HOT 2
- 編集画面遷移時に現在の文字数を表示
- 履歴機能を実装 HOT 8
- テストがかけるようになりたい
- 最初の回答を作成(#11 関連) HOT 1
- updateってどうするんだっけ(#11 関連) HOT 1
- es_editのformを書き換える。 HOT 1
- ES詳細画面で自分の回答を検索できるようにする
- トランザクションを考える
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esuits_junki.