問題タブ [drf-queryset]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
django - Django Admin オブジェクトをインライン化する
と の 2 つのモデルがQuestion
ありQuestionChoice
ます。QuestionChoice には、Question を指す ForeignKeyfield があります。これらを管理ビューにインライン スタック ビューとして表示したいのですが、エラーが発生します。
モデル:
管理者:
しかし、私はこのエラーが発生しています:
私が間違っていることはありますか?
django - Djangoシリアライザーを使用してカスタムユーザーモデルのフィールドを更新する方法
ユーザーが以前に作成したものを更新したいときに、ユーザーモデルのさまざまなフィールドを更新しようとしています。カスタム ユーザー モデルがあり、更新 API に django rest フレームワークを使用しています。
ビュー.py
models.py
serializers.py
これは、ユーザーが既に存在するというエラーをスローしています!
手伝ってください!