347e189a96
[FIX] Edge case bug when viewing Person before user creates their Person
...
Handle error thrown if user tries to view a Person object's details (/person/xx) before creating their own linked Person object
2023-02-01 18:38:28 +00:00
0355392675
[FEAT] Move a lot of content/settings to Constance
...
They can now be changed in the Django admin interface
2023-01-05 23:43:31 +00:00
James Graham
3ea4ea88a7
refactor: reorganise network page
...
Backend form handling slightly simplified - date is own form now
2021-05-20 15:28:59 +01:00
James Graham
fa6a4339d8
fix: fix org map pin color on detail view
2021-04-26 21:03:03 +01:00
James Graham
adc9021002
fix: Force new user workflow through right forms
...
Resolves #112
Resolves #68
2021-04-25 17:13:59 +01:00
James Graham
7681e78a50
perf: prefetch for serializers on network view
...
Reduces request time by more than 50%
2021-04-25 15:11:21 +01:00
James Graham
7d14fed90f
fix: distinguish kinds of relationship with orgs
...
Refactor node/edge style method to improve performance
2021-04-25 14:00:37 +01:00
James Graham
7d1c05cfd8
feat: add organisation relationships to network
2021-04-25 11:50:52 +01:00
James Graham
cc25a154ac
refactor: reduce duplication in network filters
2021-04-25 11:25:15 +01:00
James Graham
20812dfc40
feat: add person and org filters to network
...
Resolves #54
2021-04-22 21:16:39 +01:00
James Graham
2664ff6e83
refactor: allow question prefix on dynamic forms
...
Setup to support multiple network filters
See #54
2021-03-26 11:36:19 +00:00
James Graham
81598ea624
refactor: allow admin config of static questions
...
Text and visibility set in admin panel are now respected everywhere
2021-03-19 15:36:09 +00:00
James Graham
74fffb0cac
refactor: views to handled ended relationships
...
Add ending of organisation relationships
2021-03-19 12:41:36 +00:00
James Graham
42d95beb5a
feat: add view to end relationship
2021-03-19 12:00:32 +00:00
James Graham
8093b23870
refactor: making static qs more admin configurable
2021-03-18 18:09:02 +00:00
James Graham
c20b2b5a0a
feat: add rel create / update buttons to profiles
...
See #109
2021-03-18 17:52:14 +00:00
James Graham
583a49fdd3
fix: attr error if non-admin updates relationship
2021-03-11 12:59:57 +00:00
James Graham
87e5e6cbf3
fix: redirect to index if no profile exists
...
New users were sent to profile page before they had a profile
2021-03-10 15:40:10 +00:00
James Graham
3ad8d4a5c9
fix: error when viewing profile with no answerset
2021-03-10 15:03:24 +00:00
James Graham
667a51d1c7
refactor: remove duped code in relationship update
2021-03-10 12:41:07 +00:00
James Graham
75bc12de57
fix: use prev answers as initial for relationships
...
Resolves #65
2021-03-10 12:38:49 +00:00
James Graham
df13bcf46d
fix: exclude hardcoded qs from dynamic table
2021-03-10 11:38:52 +00:00
James Graham
8697d726b6
fix: condense multiple answers to same question
...
Show on same row on profile page
See #97
2021-03-10 11:20:34 +00:00
James Graham
5d1caf98ba
fix: indentation error in last commit
2021-03-09 17:50:22 +00:00
James Graham
97473a46e2
fix: attribute error on org list page
...
Error for organisations with no AnswerSet
2021-03-09 17:43:46 +00:00
James Graham
989c8141b3
feat: display organisations on map
...
Add buttons to toggle organisations and people
Resolves #87
2021-03-09 14:55:31 +00:00
James Graham
7d74a99518
feat: sort by country on organisation list
2021-03-09 12:24:46 +00:00
James Graham
936a375992
feat: add relationships from person to org
...
Resolves #77
See #78
2021-03-02 09:03:10 +00:00
James Graham
b73e2dcb2d
feat: add organisations to network view
...
See #78
2021-03-01 14:43:16 +00:00
James Graham
71e5352b6b
refactor: move organisation latlng to answerset
2021-02-24 15:44:34 +00:00
James Graham
c8a68d542a
feat: add organisation questions to update view
2021-02-24 14:59:43 +00:00
James Graham
afae0fd943
feat: add relationship buttons on person list
...
Resolves #63
2021-02-01 15:47:51 +00:00
James Graham
4bbe4eac3a
refactor: simplify relationship create workflow
2021-02-01 09:47:53 +00:00
James Graham
4d4d7ab70b
feat: show basic profiles to non-admins
...
Resolves #61
2021-01-29 14:35:15 +00:00
James Graham
4cfee6362d
refactor: add person update form fields to initial
2021-01-15 17:45:55 +00:00
James Graham
59f717829a
refactor: add map marker to context on update
2021-01-15 16:32:57 +00:00
James Graham
9db870bcb0
feat: add views for Organisation model
...
Location picker on update view
2021-01-15 14:58:05 +00:00
James Graham
2d85ab4370
feat: add location to organisations
2021-01-15 13:44:20 +00:00
James Graham
95fda6a3d5
refactor: prep for fallback to organisation latlng
2021-01-15 12:31:49 +00:00
James Graham
cbc70ab85a
fix: do lookup by person in person update view
...
Fixes #42
2020-12-18 15:56:19 +00:00
James Graham
b2cd5f4940
feature: add map of all people
2020-12-16 14:54:46 +00:00
James Graham
8e52f779ee
feat: add location fields to person answer sets
2020-12-15 14:23:51 +00:00
James Graham
6bb4f09454
refactor: update forms to match moved questions
2020-12-02 15:53:30 +00:00
James Graham
d6e42cc18d
style: fix pyflakes warnings of unused imports
2020-12-02 14:25:49 +00:00
James Graham
a94db2713e
fix: Only allow users to create rels as source
...
There is now no field for users to define the source of a relationship
The source is always the person in the URL
And only that user or staff can access the form
2020-08-14 17:38:22 +01:00
James Graham
c6eda514ca
fix: Fix time filtering of relationships on MySQL
...
Resolves #31
2020-05-28 13:51:00 +01:00
James Graham
3b3cec02be
feat: Add date field to network view
...
Filters relationships to only those valid at date
2020-04-20 13:32:07 +01:00
James Graham
719b11e79e
fix: Fix broken relationship update form
...
Did not get values from fields correctly
Incorrectly marked answersets as expired immediately
2020-04-20 13:30:15 +01:00
James Graham
bf472a69fd
refactor: Reverse relationship query in network view
2020-04-17 16:03:11 +01:00
James Graham
75fc169630
fix: Fix filters on network view
...
Filters now use OR for multiple choices in the same field
2020-04-17 15:04:48 +01:00