Move history to separate app
This commit is contained in:
parent
f0a232f366
commit
2d5f209c41
12 changed files with 13 additions and 6 deletions
|
@ -18,7 +18,7 @@
|
|||
<h3>{% translate "Transactions" %}</h3>
|
||||
{% include "transaction/transaction_table.html" %}
|
||||
<h3>{% translate "History" %}</h3>
|
||||
{% include "transaction/history_plot.html" %}
|
||||
{% include "history/plot.html" %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from django.shortcuts import get_object_or_404
|
||||
from django.urls import reverse_lazy
|
||||
from history.utils import history
|
||||
from main.views import NummiCreateView, NummiDeleteView, NummiUpdateView
|
||||
from statement.views import StatementListView
|
||||
from transaction.utils import history
|
||||
from transaction.views import TransactionListView
|
||||
|
||||
from .forms import AccountForm
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
{% endif %}
|
||||
{% if history.data %}
|
||||
<h3>{% translate "History" %}</h3>
|
||||
{% include "transaction/history_plot.html" %}
|
||||
{% include "history/plot.html" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from django.shortcuts import get_object_or_404
|
||||
from django.urls import reverse_lazy
|
||||
from history.utils import history
|
||||
from main.views import NummiCreateView, NummiDeleteView, NummiUpdateView
|
||||
from transaction.utils import history
|
||||
from transaction.views import TransactionListView
|
||||
|
||||
from .forms import CategoryForm
|
||||
|
|
0
nummi/history/__init__.py
Normal file
0
nummi/history/__init__.py
Normal file
6
nummi/history/apps.py
Normal file
6
nummi/history/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class HistoryConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "history"
|
0
nummi/history/migrations/__init__.py
Normal file
0
nummi/history/migrations/__init__.py
Normal file
|
@ -42,6 +42,6 @@
|
|||
{% endif %}
|
||||
{% if history.data %}
|
||||
<h2>{% translate "History" %}</h2>
|
||||
{% include "transaction/history_plot.html" %}
|
||||
{% include "history/plot.html" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -10,9 +10,9 @@ from django.views.generic import (
|
|||
TemplateView,
|
||||
UpdateView,
|
||||
)
|
||||
from history.utils import history
|
||||
from statement.models import Statement
|
||||
from transaction.models import Transaction
|
||||
from transaction.utils import history
|
||||
|
||||
|
||||
class IndexView(LoginRequiredMixin, TemplateView):
|
||||
|
|
|
@ -51,6 +51,7 @@ INSTALLED_APPS = [
|
|||
"statement",
|
||||
"transaction",
|
||||
"search",
|
||||
"history",
|
||||
"django.contrib.admin",
|
||||
"django.contrib.auth",
|
||||
"django.contrib.contenttypes",
|
||||
|
|
Loading…
Reference in a new issue