Unit fixes

This commit is contained in:
Oliver Walters 2021-02-04 16:06:01 +11:00
parent 6ebebe03d4
commit 0de284f1aa
2 changed files with 5 additions and 2 deletions

View File

@ -86,7 +86,6 @@ class ReportBase(models.Model):
def __str__(self): def __str__(self):
return "{n} - {d}".format(n=self.name, d=self.description) return "{n} - {d}".format(n=self.name, d=self.description)
def getSubdir(self): def getSubdir(self):
return '' return ''

View File

@ -3,8 +3,12 @@
<head> <head>
<style> <style>
@page { @page {
{% block page_size %}
size: A4; size: A4;
{% endblock %}
{% block page_margin %}
margin: 2cm; margin: 2cm;
{% endblock %}
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
font-size: 75%; font-size: 75%;
@ -50,8 +54,8 @@
left: 0px; left: 0px;
position: fixed; position: fixed;
width: 100%; width: 100%;
{% endblock %}
margin-top: -2.5cm; margin-top: -2.5cm;
{% endblock %}
} }
.content { .content {