Commit Graph

709 Commits

Author SHA1 Message Date
92867c3e97 Changed the pagination template variable to pagination_links. 2020-07-07 22:50:57 +08:00
e9509c9bac Changed the links attribute of Pagination to a pseudo attribute that is calculated on request. 2020-07-07 22:49:37 +08:00
19ac9d3200 Added the navigation links for pagination. 2020-07-07 22:18:40 +08:00
3bce775729 Added the trailing blank line in mia_core.utils. 2020-07-07 21:07:25 +08:00
1f748d09ce Fixed the documentation in Pagination. 2020-07-07 21:07:05 +08:00
563a368ab0 Fixed UrlBuilder on its string output. 2020-07-07 21:06:11 +08:00
897f82bd26 Moved part of the pagination logic from the view to Pagination. 2020-07-07 21:04:07 +08:00
df0380362b Renamed PageNoOutOfRangeError to PageNoOutOfRangeException. 2020-07-07 20:56:01 +08:00
5ff7f444e9 Added documentation to PageNuOutOfRangeError. 2020-07-07 20:55:29 +08:00
d48d1b017a Moved the pagination and the page number out of range error from the accounting application to the Mia core application. 2020-07-07 20:54:35 +08:00
c0f664761e Added documentation to the utilities and views of the Mia Core application. 2020-07-07 20:49:31 +08:00
a26247f752 Revised the has_order_hole attribute of the accounting transaction data model. 2020-07-07 19:33:34 +08:00
83f97a6467 Restored the missing _has_order_hole attribute to the accounting transaction model. 2020-07-07 19:32:19 +08:00
bf20fc8a72 Added the has_many_same_day property to the accounting transactions. 2020-07-07 07:12:26 +08:00
e6401e75ae Implemented has_order_hole in Transaction, and added the caches and setters to the pseudo properties is_balanced and has_order_hole. 2020-07-07 07:10:24 +08:00
37e793f340 Revised the cash report template. 2020-07-06 23:58:47 +08:00
cd7d7a5106 Added the home page view. 2020-07-06 23:22:20 +08:00
66f1e4b4fa Renamed the logout_view() function to logout(). 2020-07-06 23:06:45 +08:00
68be53e212 Added to log out the current user. 2020-07-06 23:04:14 +08:00
de679cf91a Removed an unsed logging. 2020-07-06 22:26:43 +08:00
405ae2307e Added the digest_login_required decorator. 2020-07-06 22:26:29 +08:00
68cf985671 Changed the decorator from @require_http_methods to @require_GET in the accounting module 2020-07-06 21:36:31 +08:00
218ae35b8d Added the Simplified Chinese translation to .gitignore, because it is generated. 2020-07-06 07:48:29 +08:00
62f960c081 Addded a simple authentication request to the cash report view. 2020-07-06 00:10:38 +08:00
714086e8e2 Applied the User model to the data models in the accounting application. Changed the primary keys of the accounting application to positive integers. 2020-07-06 00:09:26 +08:00
5acda6cd30 Added the HTTP digest authentication to mia_core. 2020-07-05 23:40:39 +08:00
8a539fb144 Added the User and Country models to mia_core. 2020-07-05 23:40:12 +08:00
aa89286cd9 Added the mia_core application. 2020-07-04 08:17:08 +08:00
依瑪貓
6295641366 Created mia.local_settings and moved the local settings from mia.settings to mia.local_settings. Removed settings.py from .gitignore, and added local_settings.py to .gitignore. 2020-07-02 10:08:33 +08:00
依瑪貓
9690256edc Fixed the template of the accounting cash report. 2020-07-02 09:53:15 +08:00
依瑪貓
0243289946 Revised the code according to the PyCharm and PEP8 inspection. 2020-07-02 09:45:11 +08:00
dc14f2e27a Renamed the human_date filter to smart_date. 2020-07-02 07:40:45 +08:00
a315907a5a Added the excludes directory to .gitignore. 2020-07-02 02:13:26 +08:00
1f931062ef Added the migrations directories to .gitignore. 2020-07-02 02:11:29 +08:00
bc0c1d9803 Fixed the layout of the cash report. 2020-07-02 02:10:44 +08:00
a3c0f3fb82 Added the template helper to display the date in a human-friendly format. 2020-07-02 02:04:35 +08:00
d19b12509f Removed an unused import from the views of the accounting application. 2020-07-02 02:04:16 +08:00
fbce3ab9ef Revised the documentation. 2020-07-02 00:50:27 +08:00
4537681bb5 Added the documentation to the invalid page number in Pagination. 2020-07-02 00:45:53 +08:00
3abce4498f Revised the pagination to redirect to the URL without the page number if the specific page number is exactly the default page number. That is, the page number is totally unnecessary. 2020-07-02 00:42:34 +08:00
789bdca699 Added simple localization. 2020-07-02 00:34:43 +08:00
bcb7718646 Added the gettext MO files to .gitignore. 2020-07-02 00:34:27 +08:00
1ddfc96621 Revised to redirect on invalid page size and page number on pagination. 2020-07-01 23:39:32 +08:00
8cab91dcd2 Added the side-wide base template, and apply it in the accounting cash report. 2020-07-01 23:38:36 +08:00
cff4893c77 Added the UrlBuilder utility to the Mia core. 2020-07-01 23:35:23 +08:00
238f5f6b85 Added the setvar template tag to the Mia core. 2020-07-01 23:35:04 +08:00
cccf96e099 Added the mia_core package. 2020-07-01 23:34:22 +08:00
依瑪貓
baa93ca76c Added venv and the external libraries to .gitignore. 2020-07-01 09:28:37 +08:00
eb07cc30ba Removed the unused imports from the views of the accounting application. 2020-07-01 00:54:41 +08:00
51ec6f7eed Revised the documentation of the get_query_number() function. 2020-07-01 00:54:15 +08:00