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/ /nummi-git/
/pkg/ /pkg/
/src/ /src/
/nummi/media

View file

@ -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>

View file

@ -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(
"databases",
{
"default": { "default": {
"ENGINE": "django.db.backends.postgresql", "ENGINE": "django.db.backends.postgresql",
"NAME": "nummi", "NAME": "nummi",
"USER": "nummi", "USER": "nummi",
} }
}) },
)
# Password validation # Password validation