Compare commits

..

3 Commits

3 changed files with 13 additions and 9 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ __pycache__
/nummi-git/
/pkg/
/src/
/nummi/media

View File

@ -29,13 +29,13 @@
</div>
{% for inv in transaction.invoices %}
<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_delete_url }}" class="right">{% translate "Delete" %}</a>
</div>
{% endfor %}
<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>
</div>
</div>

View File

@ -87,13 +87,16 @@ WSGI_APPLICATION = "nummi.wsgi.application"
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = CONFIG.get("databases", {
DATABASES = CONFIG.get(
"databases",
{
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "nummi",
"USER": "nummi",
}
})
},
)
# Password validation