久久久久久久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 中查詢集中記錄的多行相關的字段

      Concatenation of a field related to multiple rows of a record in query set in Django(連接與 Django 中查詢集中記錄的多行相關的字段)
    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 中查詢集中記錄的多行相關的字段的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

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

                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')
                )
                

                拋出錯誤,因為只有一個參數被傳遞給連接.我正在尋找的結果是一個針對 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.

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

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

                相關文檔推薦

                SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產品、類別和元數據的 SQL 查詢 woocommerce/wordpress)
                How to use MySQL in WSL (Windows Subsystem for Linux)?(如何在 WSL(Linux 的 Windows 子系統)中使用 MySQL?)
                PowerShell MySQL Backup Script Error in Task Scheduler 0x00041301(任務計劃程序中的 PowerShell MySQL 備份腳本錯誤 0x00041301)
                Import the data from the XML files into a MySQL database(將數據從 XML 文件導入 MySQL 數據庫)
                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>
                          主站蜘蛛池模板: 日日操日日舔 | 亚洲视频自拍 | 欧美激情一区二区三级高清视频 | 搞黄视频免费看 | 欧美一二三四成人免费视频 | 91精品国产91久久久久久丝袜 | 亚洲乱码国产乱码精品精98午夜 | 成人不卡 | av一区二区三区在线观看 | 免费观看一级黄色录像 | 久艹网站 | 国产精品免费一区二区三区 | 日韩欧美国产一区二区 | 国产小网站 | 亚洲精品www久久久久久广东 | 欧美精品久久久 | 草b视频 | 久久不卡 | 成人免费视频在线观看 | 日韩视频在线一区 | 亚洲欧美日韩系列 | 91精品综合久久久久久五月天 | 色久伊人 | 亚洲高清在线免费观看 | 亚洲欧美一区二区三区在线 | 久久国产婷婷国产香蕉 | 一级黄a视频 | 美女国内精品自产拍在线播放 | 日韩av在线中文字幕 | 日韩在线精品视频 | 精品视频一区二区三区在线观看 | 欧美精品在线一区 | 99pao成人国产永久免费视频 | 粉嫩一区二区三区四区公司1 | 蜜桃av一区二区三区 | 欧美日韩视频在线第一区 | 2019天天干天天操 | 日日欧美 | 国产成人91视频 | 真人女人一级毛片免费播放 | 天天色综|