this is a test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7-alpine | |
# MAINTAINER LuisQuinones | |
ENV PYTHONUNBUFFERED 1 | |
# RUN mkdir billdjpostgtest | |
# COPY requirements.txt /billdjpostgtest/requirements.txt | |
COPY requirements.txt /billdjpostgtest1/ |
>>> a1=HeadBill.objects.filter(CustomerID_id__customerID=str(pk), BillNumber=1)
>>> print(a1.query)
SELECT "core_headbill"."HeadBillID", "core_headbill"."CustomerID_id", "core_headbill"."BillDate", "core_headbill"."BillNumber"
FROM "core_headbill"
INNER JOIN "core_customer"
ON ("core_headbill"."CustomerID_id" = "core_customer"."CustomerID")
INNER JOIN "core_headbill"
T3 ON ("core_customer"."CustomerID" = T3."CustomerID_id")
WHERE ("core_headbill"."BillNumber" = 1 AND T3."HeadBillID" = 1)