Commit Graph

23 Commits

Author SHA1 Message Date
依瑪貓
216979dcf4 Added the abstract base model in the Mia core application. 2020-08-18 09:27:26 +08:00
d4961f9e25 Moved the local part of the application from the Mia core application to the Mia Womb local application. 2020-08-18 00:37:04 +08:00
bd7b49feda Removed an unused import from the models in the Mia core application. 2020-08-17 23:26:50 +08:00
c400d65f91 Replaced the get_absolute_url() method in the user data model with the get_success_url() method in the user and my account form model, and added the current application to the arguments to enable multiple instances of the application in the accounting application. 2020-08-17 22:41:37 +08:00
依瑪貓
5e321ad420 Added to catch ProgrammingError when checking whether a user is in use in the Mia core application. 2020-08-17 09:29:03 +08:00
依瑪貓
3c655b8f87 Added my own base FormView, and replaced the current function-based user form views with a new UserFormView that based on my base FormView in the Mia core application. I do not know if I am doing the right thing. 2020-08-13 15:43:04 +08:00
1be05c2252 Added type hints to the Mia core application. 2020-08-13 08:05:35 +08:00
49264d3ede Fixed the data model definition in the Mia core application. 2020-08-10 23:35:21 +08:00
4e99eaa725 Revised the user data model to allow not updating the updated_at time in the Mia core application. 2020-08-10 02:39:05 +08:00
c19c6c4b1e Added to store the user account in the Mia core application. 2020-08-09 22:41:22 +08:00
227068e9be Revised the string representation of a user in the Mia core application. 2020-08-09 20:27:05 +08:00
2a6d3ff4cb Added the user list in the Mia core application. 2020-08-09 20:22:37 +08:00
bbd3d0e470 Revised and simplify the data model definition. 2020-08-09 16:34:47 +08:00
688e350017 Adapted dirtyfields in the data models. 2020-08-02 09:53:26 +08:00
01dbd7e60b Removed the default order of the users and the countries in the Mia core application. 2020-07-21 21:24:36 +08:00
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
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
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
42e444b8c8 Revised the code for PEP8. 2020-07-16 22:25:33 +08:00
fa034b9a6a Added the get_multi_language_attr() function to the Mia core application, to deal with the multi-lingual attributes, and applied it in the data models. 2020-07-14 22:01:32 +08:00
6f604f1c86 Revised the documentation. 2020-07-08 07:24:36 +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