Compare commits
3 commits
49834e10e8
...
963c91594a
Author | SHA1 | Date | |
---|---|---|---|
963c91594a | |||
7f6c00c0a2 | |||
077c39adde |
3 changed files with 13 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ __pycache__
|
||||||
/nummi-git/
|
/nummi-git/
|
||||||
/pkg/
|
/pkg/
|
||||||
/src/
|
/src/
|
||||||
|
/nummi/media
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
</div>
|
</div>
|
||||||
{% for inv in transaction.invoices %}
|
{% for inv in transaction.invoices %}
|
||||||
<div class="invoice">
|
<div class="invoice">
|
||||||
<a href="{{ inv.file.url }}"><i class="fa-regular fa-file"></i></a>
|
<a href="{{ inv.file.url }}" class="center"><i class="fa-regular fa-file"></i></a>
|
||||||
<a href="{{ inv.get_absolute_url }}">{{ inv.name }}</a>
|
<a href="{{ inv.get_absolute_url }}">{{ inv.name }}</a>
|
||||||
<a href="{{ inv.get_delete_url }}" class="right">{% translate "Delete" %}</a>
|
<a href="{{ inv.get_delete_url }}" class="right">{% translate "Delete" %}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="invoice new">
|
<div class="invoice new">
|
||||||
<i class="fa fa-file-circle-plus"></i>
|
<span class="center"><i class="fa fa-file-circle-plus"></i></span>
|
||||||
<a href="{% url "invoice" transaction.pk %}">{% translate "New invoice" %}</a>
|
<a href="{% url "invoice" transaction.pk %}">{% translate "New invoice" %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -87,13 +87,16 @@ WSGI_APPLICATION = "nummi.wsgi.application"
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
||||||
|
|
||||||
DATABASES = CONFIG.get("databases", {
|
DATABASES = CONFIG.get(
|
||||||
"default": {
|
"databases",
|
||||||
"ENGINE": "django.db.backends.postgresql",
|
{
|
||||||
"NAME": "nummi",
|
"default": {
|
||||||
"USER": "nummi",
|
"ENGINE": "django.db.backends.postgresql",
|
||||||
}
|
"NAME": "nummi",
|
||||||
})
|
"USER": "nummi",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# Password validation
|
# Password validation
|
||||||
|
|
Loading…
Reference in a new issue