久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='WwCGf'><style id='WwCGf'><dir id='WwCGf'><q id='WwCGf'></q></dir></style></legend>

  1. <small id='WwCGf'></small><noframes id='WwCGf'>

      <bdo id='WwCGf'></bdo><ul id='WwCGf'></ul>

    1. <tfoot id='WwCGf'></tfoot>

      <i id='WwCGf'><tr id='WwCGf'><dt id='WwCGf'><q id='WwCGf'><span id='WwCGf'><b id='WwCGf'><form id='WwCGf'><ins id='WwCGf'></ins><ul id='WwCGf'></ul><sub id='WwCGf'></sub></form><legend id='WwCGf'></legend><bdo id='WwCGf'><pre id='WwCGf'><center id='WwCGf'></center></pre></bdo></b><th id='WwCGf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WwCGf'><tfoot id='WwCGf'></tfoot><dl id='WwCGf'><fieldset id='WwCGf'></fieldset></dl></div>
    2. 連接與 Django 中查詢集中記錄的多行相關(guān)的字段

      Concatenation of a field related to multiple rows of a record in query set in Django(連接與 Django 中查詢集中記錄的多行相關(guān)的字段)
    3. <legend id='yZLZG'><style id='yZLZG'><dir id='yZLZG'><q id='yZLZG'></q></dir></style></legend>

        1. <small id='yZLZG'></small><noframes id='yZLZG'>

              <tbody id='yZLZG'></tbody>

              <bdo id='yZLZG'></bdo><ul id='yZLZG'></ul>

                <tfoot id='yZLZG'></tfoot>
              • <i id='yZLZG'><tr id='yZLZG'><dt id='yZLZG'><q id='yZLZG'><span id='yZLZG'><b id='yZLZG'><form id='yZLZG'><ins id='yZLZG'></ins><ul id='yZLZG'></ul><sub id='yZLZG'></sub></form><legend id='yZLZG'></legend><bdo id='yZLZG'><pre id='yZLZG'><center id='yZLZG'></center></pre></bdo></b><th id='yZLZG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yZLZG'><tfoot id='yZLZG'></tfoot><dl id='yZLZG'><fieldset id='yZLZG'></fieldset></dl></div>
              • 本文介紹了連接與 Django 中查詢集中記錄的多行相關(guān)的字段的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                限時送ChatGPT賬號..

                我必須用一對多的關(guān)系建模,我試圖用它來區(qū)分我的記錄類型.假設(shè)第一個模型專用于 Book 信息,第二個模型是一些類型,例如 A、B、C,并且 Type 表與 Book 之間存在間接關(guān)系,因此每本書可以是 A、B 或 C 或任何可能的組合類型.我想使用串聯(lián)(或注釋中的任何其他可能的函數(shù)來收集字段中的所有類型).

                I have to models with one to many relation with which I try to distinguish the type of my records. Let's say First model is dedicated to Book information and second model is some types such as A, B , C and there is an indirect relation from the Type table to Book, so each book could be A, B or C or any possible combination of Types. I want to use concatenation (or any other possible function in annotation to gather all the types in a field).

                Book.objects.all(
                ).annotate(
                    Types = F('TableRelation__Type__Name')
                ).annotate(
                    CombinedTypes = Concat('Types')
                )
                

                拋出錯誤,因為只有一個參數(shù)被傳遞給連接.我正在尋找的結(jié)果是一個針對 Book 的任何唯一 id 填充了ABAB"的 CombinedTypes 字段,這表明該記錄是AB"(或 A、B 和 C 的任何其他組合).

                which throws an error since only one argument is passed to be Concatenated. The result I am looking for is a CombinedTypes field filled with "ABAB" for any unique id of Book which shows that that record is an "AB" (or any other combination of A,B and C).

                我怎樣才能做到這一點?

                How can I achieve this?

                推薦答案

                我最終使用了 this 中解釋的解決方案@Ahmad 在評論中介紹的帖子中的堆棧溢出答案.

                I ended up using the solution explained in this Stack-overflow answer in the post introduced by @Ahmad in comments.

                這篇關(guān)于連接與 Django 中查詢集中記錄的多行相關(guān)的字段的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產(chǎn)品、類別和元數(shù)據(jù)的 SQL 查詢 woocommerce/wordpress)
                How to use MySQL in WSL (Windows Subsystem for Linux)?(如何在 WSL(Linux 的 Windows 子系統(tǒng))中使用 MySQL?)
                PowerShell MySQL Backup Script Error in Task Scheduler 0x00041301(任務(wù)計劃程序中的 PowerShell MySQL 備份腳本錯誤 0x00041301)
                Import the data from the XML files into a MySQL database(將數(shù)據(jù)從 XML 文件導(dǎo)入 MySQL 數(shù)據(jù)庫)
                installed Xampp on Windows 7 32-bit. Errors when starting(在 Windows 7 32 位上安裝 Xampp.啟動時的錯誤)
                Mysql lower case table on Windows xampp(Windows xampp 上的 Mysql 小寫表)

              • <i id='3zLmr'><tr id='3zLmr'><dt id='3zLmr'><q id='3zLmr'><span id='3zLmr'><b id='3zLmr'><form id='3zLmr'><ins id='3zLmr'></ins><ul id='3zLmr'></ul><sub id='3zLmr'></sub></form><legend id='3zLmr'></legend><bdo id='3zLmr'><pre id='3zLmr'><center id='3zLmr'></center></pre></bdo></b><th id='3zLmr'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3zLmr'><tfoot id='3zLmr'></tfoot><dl id='3zLmr'><fieldset id='3zLmr'></fieldset></dl></div>

                1. <legend id='3zLmr'><style id='3zLmr'><dir id='3zLmr'><q id='3zLmr'></q></dir></style></legend>
                    <bdo id='3zLmr'></bdo><ul id='3zLmr'></ul>

                    <small id='3zLmr'></small><noframes id='3zLmr'>

                        <tfoot id='3zLmr'></tfoot>
                            <tbody id='3zLmr'></tbody>
                          主站蜘蛛池模板: 亚洲欧美中文字幕 | 日韩中文字幕久久 | 天天草视频 | 亚洲欧美日韩在线 | 亚洲男女激情 | 国内自拍偷拍视频 | 国产探花在线观看视频 | 日日av| 91精品国产91久久久久久丝袜 | 美女在线观看国产 | 国产成人免费网站 | 日韩视频区 | 一区二区精品视频 | 国产区精品在线观看 | 成人亚洲 | 在线观看国产精品视频 | 日韩一区二区三区精品 | 亚洲激情综合 | 国产成人99久久亚洲综合精品 | 欧美一区2区三区3区公司 | 日本久久久久久 | 一区二区国产在线 | 国产成人jvid在线播放 | 中文字幕一区二区三区四区五区 | 性一交一乱一伦视频免费观看 | 国产精品美女一区二区 | 日韩一区av | 久久久青草婷婷精品综合日韩 | 韩国毛片视频 | 中文字幕一区二区三区四区五区 | 国产激情自拍视频 | 波多野结衣在线观看一区二区三区 | 在线观看av不卡 | 男人亚洲天堂 | 欧美国产中文 | 国产欧美日韩综合精品一区二区 | 在线观看免费av网 | 国产欧美精品区一区二区三区 | 欧美日韩综合视频 | 亚洲在线一区二区 | 又爽又黄axxx片免费观看 |