Renamed the templates edit.html to form.html, and show.html to view.html in the accounting application.
This commit is contained in:
parent
b11348b276
commit
78cac61cd5
@ -855,7 +855,7 @@ def transaction_show(request, type, transaction):
|
||||
Returns:
|
||||
HttpResponse: The response.
|
||||
"""
|
||||
return render(request, F"accounting/transactions/{type}/show.html", {
|
||||
return render(request, F"accounting/transactions/{type}/view.html", {
|
||||
"item": transaction,
|
||||
})
|
||||
|
||||
@ -879,6 +879,6 @@ def transaction_create(request, type, transaction=None):
|
||||
transaction.records.append(Record(ord=1, is_credit=False))
|
||||
if len(transaction.credit_records) == 0:
|
||||
transaction.records.append(Record(ord=1, is_credit=True))
|
||||
return render(request, F"accounting/transactions/{type}/edit.html", {
|
||||
return render(request, F"accounting/transactions/{type}/form.html", {
|
||||
"item": transaction,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user