Commit Graph

203 Commits

Author SHA1 Message Date
imacat 1b89fef01c Fixed and replaced the incorrect class property declaration with the instance property declaration, and replaced unnecessary pseudo properties with instance properties. 2020-08-02 01:04:47 +08:00
imacat edb1aece09 Fixed the documentation of the view of the home page in the Mia core application. 2020-08-02 00:29:43 +08:00
imacat da80816b37 Revised the coding style according to PEP8. 2020-08-02 00:08:53 +08:00
imacat 9d988f17ca Added forms and validators, and applied them to the transaction form in the accounting application. 2020-08-01 23:56:41 +08:00
imacat c1da25b3b5 Fixed the text in the period chooser for the period "since last month" in the period chooser template in the Mia core application. 2020-08-01 07:56:06 +08:00
imacat aec234fc01 Renamed the add_param() method to add(), the del_param() method to remove(), and the set_param() method to set() in UrlBuilder in the Mia core application. 2020-07-31 21:16:03 +08:00
imacat 1a27d87400 Added the strip_form() utility to the Mia core application, and apply it to the transaction_store() view of the accounting application. 2020-07-31 00:14:12 +08:00
imacat a30c937a4b Renamed the digest_login_required() decorator to login_required(), for consistency. 2020-07-30 00:12:13 +08:00
imacat e64089f06f Added the default_spec() method to Period, and applied it to the views in the accounting application. 2020-07-29 19:08:10 +08:00
imacat 80b871d488 Added the retrieve_status() utility and applied it in the retrieve_status template tag in the Mia core application. 2020-07-28 22:22:06 +08:00
imacat 983f38d6f0 Renamed the function of the retrieve_status() template tag to retrieve_status_tag() with alias to retrieve_status. 2020-07-28 22:19:26 +08:00
imacat a0ec831310 Removed the unused index template filter from the Mia core application. 2020-07-28 22:12:46 +08:00
imacat 9ab325a1c7 Added the dict template filter to obtain a value from a dictionary in the Mia core application, and applied it in the templates of the forms of the transactions in the acccounting application. 2020-07-28 22:11:54 +08:00
imacat d6df2496be Removed an excess trailing blank line in the Mia core application. 2020-07-28 20:14:55 +08:00
imacat 7ae30f9980 Revised the retrieve_status() template tag and renamed the errors template variable to page_errors in the Mia core application. 2020-07-28 20:06:09 +08:00
imacat 50c06bd3d3 Added the error_redirect() utility, and revised the documentation of the stored status utilities in the Mia core application. 2020-07-28 20:01:58 +08:00
imacat 958e3048bb Added the documentation to the success_redirect() utility in the Mia core application. 2020-07-28 19:34:14 +08:00
依瑪貓 8285c69685 Fixed an error in the storing the status into the session in the Mia core application. 2020-07-28 09:38:58 +08:00
imacat b5e7f9878f Fixed an error in the storing the status into the session in the Mia core application. 2020-07-28 08:43:30 +08:00
imacat e90defd25d Added the stored status and a dummy transaction_store() view to the accounting application. 2020-07-28 08:22:42 +08:00
imacat 99fb99b160 Added the view and the templates for the forms of the transactions in the accounting application. 2020-07-27 22:36:28 +08:00
imacat cc18dbd5f1 Reordered the code in the template tags in the Mia core application. 2020-07-27 21:23:40 +08:00
imacat 5a2a3a6c56 Fixed the UrlBuilder utility to allow dummy parameter value that is None in the Mia core application. 2020-07-24 07:25:30 +08:00
imacat 10cbe2a70f Revised the documentation of the utilities of the Mia core application. 2020-07-24 06:42:33 +08:00
imacat 6e49443b88 Renamed the new_id() utility to new_pk() in the Mia core application. 2020-07-23 23:24:42 +08:00
imacat e04736b90d Renamed the new_sn() utility to new_id() in the Mia core application. 2020-07-23 23:04:18 +08:00
imacat 6453cd4b8e Added the edit button to the transaction views in the accounting application. 2020-07-23 22:32:34 +08:00
imacat 0a29ffaa12 Moved the url_with_return template tag from the accounting application to the Mia core application. 2020-07-23 22:23:40 +08:00
imacat 334292e6e8 Revised the url_period() tag in the Mia core application. 2020-07-23 22:19:27 +08:00
imacat 25383a3ae6 Employed a regular expression pattern in the PeriodConverter to check the period format first. 2020-07-23 22:13:17 +08:00
imacat d88d3942d2 Removed the url_query() template tag from the Mia core application. 2020-07-23 22:05:41 +08:00
imacat 2db3899dea Added the transaction views in the accounting application. 2020-07-23 22:02:26 +08:00
imacat f9a9a99246 Added PeriodConverter to convert a period specification to a period, and applied it in the URL patterns. 2020-07-21 22:05:39 +08:00
imacat 01dbd7e60b Removed the default order of the users and the countries in the Mia core application. 2020-07-21 21:24:36 +08:00
imacat ebb7c06f91 Applied the set_multi_lingual_attr() utility function to the titles of the accounts and the names of the countries. 2020-07-21 21:23:54 +08:00
imacat 8d2d4c39b6 Added the set_multi_lingual_attr() utility function in the Mia core application. 2020-07-21 21:21:43 +08:00
依瑪貓 c6a62d92d5 Added the search page in the accounting application. 2020-07-21 10:04:29 +08:00
imacat 361b8c9881 Added the new_sn() utility method to the Mia core application. 2020-07-20 21:55:34 +08:00
imacat b8b5546b9f Renamed the variables. 2020-07-19 21:08:10 +08:00
imacat 1cd64955a3 Removed the now-unused SqlQuery from the Mia core application. 2020-07-18 23:43:31 +08:00
imacat 0525197993 Renamed the variable in the url_period template tag in the Mia core application. 2020-07-17 23:06:10 +08:00
imacat 856bcd47ff Revised the url_period template tag so that it works with or without the subject code in the mia_core application. 2020-07-17 23:05:23 +08:00
imacat e2945045f3 Added the default parameter to the get_multi_lingual_attr() function to allow a different default lanugage for a data model. 2020-07-16 23:18:16 +08:00
imacat 418dcd9803 Renamed the get_multi_language_attr() method to get_multi_lingual_attr(), and renamed the multi-lingual model fields from _zhtw to _zh_hant, and _zhcn to _zh_hans. 2020-07-16 23:13:15 +08:00
imacat a58f6d6d11 Moved the core custom template filters and tags to the template tag library in the Mia core application. 2020-07-16 23:03:37 +08:00
imacat 42e444b8c8 Revised the code for PEP8. 2020-07-16 22:25:33 +08:00
imacat 5b9ac93ee5 Revised the import of django.utils.timezone.localdate. 2020-07-16 22:22:35 +08:00
imacat 983c2a5533 Added the cash summary report in the accounting application. 2020-07-16 00:28:50 +08:00
imacat c65d778a1b Revised Period in the Mia core application. 2020-07-14 22:15:04 +08:00
imacat 94884e72b8 Added and applied the current() method to Language in the Mia core application. 2020-07-14 22:14:39 +08:00