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 reportlab.pdfbase import pdfmetrics | |
from reportlab.pdfbase.ttfonts import TTFont | |
FONT = os.path.join(settings.PROJECT_PATH, 'path/to/verah.ttf') | |
FONT_BOLD = os.path.join(settings.PROJECT_PATH, 'path/to/verahb.ttf') | |
FONT_NAME = "ticket_font" | |
FONT_BOLD_NAME = "ticket_font_bold" | |
FONT_FAMILY = "ticket_font_family" |
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
// k 21.3.2019, nejsou zde zastupci KSČM | |
Dita Charanzová <[email protected]> | |
Martina Dlabajová <[email protected]> | |
Olga Sehnalová <[email protected]> | |
Michaela Šojdrová <[email protected]> | |
Petr Ježek <[email protected]> | |
Jan Keller <[email protected]> | |
Luděk Niedermayer <[email protected]> |
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
import pprint | |
m = [(0, 0, 0, 0, 0), | |
(0, 0, 0, 0, 0), | |
(0, 0, 0, 0, 0), | |
(-1, 0, 0, 0, 0), | |
(-1, -1, 0, 0, 0),] | |
_x = len(m[0]) | |
_y = len(m) |
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
the_expressions = list() | |
for param in request.GET: | |
# priprava Q | |
the_expressions.append(Q(a=1, b=2, c=3)) | |
objects = objects.filter(*the_expressions) |