Commit graph

271 commits

Author SHA1 Message Date
PCoder
fdb9dc15de Make Person model ordering by full_name by default 2022-01-05 22:18:21 +05:30
PCoder
5d5731a090 Add autocomplete_fields mother_range to RangeAdmin 2022-01-05 21:21:35 +05:30
PCoder
ca20e1490e Optimize MountainRange admin page load time 2022-01-05 21:02:12 +05:30
PCoder
77f8d6da89 Optimize Resource detail admin page 2022-01-05 20:51:40 +05:30
PCoder
32b7d4e395 Reduce number of requests in the persons detail view + Optimize 2022-01-05 19:43:14 +05:30
PCoder
9130fab8a5 Merge branch 'master' into 10106/update-list-view 2022-01-04 23:15:24 +05:30
PCoder
7162dc6c8c Revert back changes from the other pull request 2022-01-04 23:02:09 +05:30
PCoder
98abe82b1d Use autocomplete fields for looking up organization 2022-01-04 22:57:56 +05:30
PCoder
1c2641af0d Update the list view
Organisation : add country to the list at the end
Mountain Ranges: add country at the end. sort the range names in alphabetical order.
Persons: should have organisation name in the list view
Resources: Alphabetically sort the titles
2022-01-04 22:27:04 +05:30
PCoder
a7362a1310 Set foreign key relationship to on cascade delete for Person 2022-01-04 21:48:14 +05:30
Nico Schottelius
61ffae3899 Remove editable fields for organisation, improve organisation display 2022-01-02 15:31:16 +01:00
PCoder
43996a75d3 Fix error refreshing Person 2021-12-15 16:40:09 +05:30
PCoder
03313e2ee1 Fix search (fields and taxa not done yet) 2021-12-07 22:32:58 +05:30
app@gmba.django-hosting.ch
6ee352c789 Handle null case for Organisation str repr 2021-12-07 04:45:37 +01:00
PCoder
8d6c76d072 Rearrange if clause 2021-12-01 13:37:54 +05:30
PCoder
b3ac3f9836 Strip and check with empty 2021-12-01 13:27:43 +05:30
PCoder
9871e4ff17 Pass debug as param 2021-12-01 13:18:59 +05:30
PCoder
40918e0a70 Remove commented code 2021-12-01 13:10:27 +05:30
PCoder
8ed02ce51e Fix keyword field name 2021-12-01 13:02:39 +05:30
PCoder
9bc417031d Disable keyword setting 2021-12-01 12:59:33 +05:30
PCoder
11e72af6c9 Fix keyword mother import 2021-12-01 12:44:41 +05:30
PCoder
6770a5a200 Accomodate mother field in import also 2021-12-01 12:39:10 +05:30
PCoder
0a3ea6a455 Fix correct field name 2021-12-01 12:23:57 +05:30
PCoder
86536256aa Import Keyword properly with correct relation 2021-12-01 12:20:17 +05:30
app@gmba.django-hosting.ch
8020fa955e Remove foreign key dependency range <-> rangeonlineinfo 2021-11-30 09:13:55 +01:00
PCoder
1960abdbcb Add formfield_overrides 2021-11-29 22:24:33 +05:30
PCoder
c94fe44569 Add author_keywords field to ResourceAdmin 2021-11-29 22:09:04 +05:30
PCoder
400bd0ecd8 Add fields to PeopleOrganizationInline 2021-11-29 22:03:51 +05:30
PCoder
f4a224f3d7 Handle None __str__ 2021-11-29 10:41:18 +05:30
PCoder
5ef97645cb Show debug messages only if debug is true 2021-11-29 10:27:27 +05:30
PCoder
fe32ab1e70 Fix Organisation model + debug 2021-11-29 10:21:26 +05:30
PCoder
4315b376cb Add migration 2021-11-29 09:43:15 +05:30
PCoder
53e5ca548e Remove unique constraint from MountainRange 2021-11-29 09:42:41 +05:30
PCoder
0d3bbb3154 Set MountainRange area to -1 explicitly if not set 2021-11-29 09:36:40 +05:30
PCoder
ec40e896b3 Set default area to -1 2021-11-29 09:35:36 +05:30
PCoder
20285f20c5 Print debug only if debug is True 2021-11-29 09:32:02 +05:30
PCoder
34a839422e Also pass model 2021-11-29 09:28:42 +05:30
PCoder
4982b1f936 Refactor connected_fields import 2021-11-29 09:24:17 +05:30
PCoder
d699beadbd More rename Range -> MountainRange 2021-11-29 09:19:43 +05:30
PCoder
1460664145 Print debug messages while import 2021-11-29 09:14:13 +05:30
PCoder
f1eaedbd14 Replace all Range with MountainRange in import script 2021-11-29 08:59:07 +05:30
PCoder
f828ce5a6e More 2021-11-29 08:16:13 +05:30
PCoder
07f21bb350 More 2021-11-29 08:13:02 +05:30
PCoder
9bda626544 Handle mother 2021-11-29 08:10:05 +05:30
PCoder
a4401d871c Handle if keyword's mother is None 2021-11-29 07:30:51 +05:30
PCoder
7f2c9693a6 Attempt a fix for self relationship of Keyword 2021-11-29 07:28:54 +05:30
PCoder
a8e2ee2c94 Disable models that are not needed in admin currently 2021-11-28 22:31:58 +05:30
PCoder
86482d4a3d Place lat long alongside 2021-11-28 22:15:41 +05:30
PCoder
50cb8e8daa Exclude some fields from the inline Person model 2021-11-28 22:11:44 +05:30
PCoder
fb34d4d7ca Add better labels 2021-11-28 22:07:17 +05:30
PCoder
8a082d2611 Change org_num1 label 2021-11-28 22:03:34 +05:30
PCoder
e238c5fed3 Organisation: Make things as described in #9945 2021-11-28 20:29:44 +05:30
PCoder
e71c225177 Add migration 2021-11-28 19:51:08 +05:30
PCoder
28730542dc Rename Organization to Organisation
Note: the internal fields/variables are still organization !
2021-11-28 19:49:56 +05:30
PCoder
c28717f455 Resource: Make fields as per #9944 2021-11-28 19:18:19 +05:30
PCoder
b4b6f8b3af Use correct PeopleResource model 2021-11-28 18:58:03 +05:30
PCoder
a6c7c9e2e7 Resource: Show inline dependent data 2021-11-28 18:50:51 +05:30
PCoder
c9736483f2 Revert back 2021-11-28 17:11:32 +05:30
4b3f80daef Make area textfield to fix error and revert decimalfield for lat/long 2021-11-28 09:25:49 +01:00
PCoder
2d45329885 Make lat/long char field 2021-11-28 13:42:03 +05:30
PCoder
cefdafdefe Add migration 2021-11-28 13:28:47 +05:30
PCoder
e7bc8b8952 Allow empty for lat/long 2021-11-28 13:28:04 +05:30
PCoder
782f27f53d Range: Add default value for lat/long 2021-11-28 13:22:08 +05:30
PCoder
8f3c9a91e7 Range: Make fields datatype similar to Access #9943 2021-11-28 13:06:35 +05:30
PCoder
194978b3e2 Make MapUnit a dropdown 2021-11-28 12:28:23 +05:30
PCoder
ee634a2a65 Rename Range -> MountainRange 2021-11-28 12:21:08 +05:30
PCoder
90eea50a33 Enable gmba_function 2021-11-28 11:59:47 +05:30
PCoder
534033e2df Make GMBA functions a drop down 2021-11-28 11:58:57 +05:30
PCoder
e26c0108a0 Add PeopleRangeInline 2021-11-28 11:56:16 +05:30
PCoder
208157f8c1 Simplify role 2021-11-28 11:21:58 +05:30
PCoder
bab37a767e Person: Introduce PeopleResourceInline 2021-11-28 11:10:19 +05:30
PCoder
65569f0b44 Person: show id in a separate row 2021-11-28 10:53:39 +05:30
PCoder
346a739828 Make search_name Char 2021-11-28 10:50:51 +05:30
PCoder
edf89706e7 Person: Show id 2021-11-28 10:50:08 +05:30
PCoder
1a8dd58e3f Persons: More fields changed to Charfield instead of TextField 2021-11-28 10:44:48 +05:30
PCoder
f4a2fb5d96 Add migration 2021-11-28 10:36:03 +05:30
PCoder
705671c887 Make title / first_name / last_name / full_name Charfields 2021-11-28 10:35:38 +05:30
PCoder
22dc5f8b44 Don't show gmba_function 2021-11-28 10:35:09 +05:30
PCoder
0ad897085e #9942: Make datatype changes Person model 2021-11-28 10:22:30 +05:30
PCoder
e796a13584 #9942: Make datatype changes Person model 2021-11-28 10:21:03 +05:30
PCoder
ed868f646d Person: introduce list_editable 2021-11-26 20:01:43 +05:30
PCoder
edda9afdce Organization: Add category choices (make category dropdown field) 2021-11-26 19:35:59 +05:30
PCoder
c8ba67f079 Add list_display to Person 2021-11-26 19:21:33 +05:30
PCoder
23b48bcba0 Fix typo: countries instead of country 2021-11-26 19:18:09 +05:30
PCoder
ddbd676f67 Add list_display for RangeAdmin 2021-11-26 19:14:10 +05:30
PCoder
3030e84fea Fix search fields for range 2021-11-26 19:12:58 +05:30
PCoder
ca7798a9d2 Remove resource_url 2021-11-26 18:47:20 +05:30
PCoder
9d9454f489 Fix boolean fields in a single line 2021-11-26 18:33:24 +05:30
PCoder
6fcbdc7184 Resource : Fix boolean field 2021-11-26 18:26:59 +05:30
PCoder
8a3dfa9182 Resource: Add boolean fields 2021-11-26 18:12:58 +05:30
PCoder
0d8931be26 Resource : add more fields that are visible below 2021-11-26 18:11:14 +05:30
PCoder
60d43427b2 Resource: Fix list_display 2021-11-26 18:03:30 +05:30
PCoder
00b14b3cf0 Add missing comma 2021-11-26 18:02:01 +05:30
PCoder
12112fb954 Add fieldsets for Resource 2021-11-26 17:49:49 +05:30
PCoder
7fd0afb8b9 Fix boolean fields of resources table 2021-11-26 17:34:02 +05:30
PCoder
c28d46f9a1 Add type choices 2021-11-26 17:26:50 +05:30
PCoder
7953a80ddc Fix org_url 2021-11-26 17:09:02 +05:30
PCoder
f69aad203e Use format_html instead of plain text 2021-11-26 17:07:03 +05:30
PCoder
034509d523 Introduce clickable resource_url 2021-11-26 17:03:44 +05:30
PCoder
6ff3d84c3b Show a clickable url alongside the url field 2021-11-26 16:56:36 +05:30