Commit Graph

116 Commits

Author SHA1 Message Date
Carl van Tonder
f962a7e0fa Fix remove_null_from_text_fields migration 2018-11-20 12:59:28 -05:00
Carl van Tonder
1256d0f52b Upgrade to Django 2.1 using pip-tools
Closes #88
2018-11-14 12:26:59 -05:00
acfbb513de Add points of interest
Do a bunch of refactoring in the process.  Current display on homepage
is a little shonky but that can be improved when there is something
using it.
2018-10-13 01:44:03 -04:00
87ae3731d3 Remove unused bundle.js file 2018-10-13 01:39:32 -04:00
ac9090788a Comment out non-working point of interest link 2018-10-12 20:29:31 -04:00
a784ddad4f Move some utility classes into a shared location 2018-10-12 20:00:55 -04:00
b0aea72c12 Redesign form selector screen 2018-10-12 19:51:59 -04:00
c21a06d5c8 Get basic, admin-editable POI working 2018-10-12 18:56:27 -04:00
4dc3acb1f9 Move some things around in prep for more than one form 2018-10-12 18:50:51 -04:00
69e518240c Add point of interest model 2018-10-12 18:50:27 -04:00
79dffadd14 Restore names of uploaded files on submit/draft restore (#65)
This involved turning the list of file IDs stored in the hidden
text field into JSON.
2018-10-12 18:34:39 -04:00
b5ccbf631d Fix bug where you couldn't upload files with spaces in the name
As part of this, replace to the jquery-file-upload plugin with a simple
fetch() call.
2018-10-12 18:31:20 -04:00
3dccff6eea Remove offending field that was stopping migration working 2018-10-09 21:10:27 -04:00
190f63abf8 Attempt a different migration to remove null from text fields 2018-10-05 09:29:24 -04:00
Naomi
6220f62af3 Set the images_file field to non-required in both places
it was set to non-required in the form but not in reality
2018-10-04 13:47:31 +01:00
Naomi
7e7d1d1d8a Updated how the form jumps to errors on reload
It was inserting "#undefined" when there was no error
2018-10-03 20:13:38 +01:00
b42a9c7571 Fix failing test 2018-09-23 13:50:38 +01:00
Carl van Tonder
af9f522bef Fix test failure 2018-09-22 22:25:35 -04:00
ff445e166d Text fields shouldn't have null=True. (#94) 2018-09-22 19:09:05 +01:00
Naomi
a467062fe1 Form now jumps to first error (if any) when it reloads
even if on a different tab.
2018-09-20 12:59:47 +01:00
9b1d9e7e04 Update draft deletion logic for new field
And comment the delete-files-only-in-drafts logic.
2018-06-27 19:50:24 +01:00
Carl van Tonder
c1e8762287 Avoid JS map crash on missing images 2018-06-18 15:28:38 -04:00
Carl van Tonder
c32ddf1abb Fix CaseStudy serialisation..
..by ensuring CS images are serialised correctly
2018-05-30 14:21:48 -04:00
Carl van Tonder
2bb7ea5561 Set CaseStudy.author 2018-05-29 23:16:51 -04:00
Carl van Tonder
d80f933b7b Add CaseStudyDraft.created 2018-05-29 23:16:51 -04:00
Carl van Tonder
39949562c1 Use multi-file upload for "images" field
Closes #62
2018-05-29 23:16:51 -04:00
Carl van Tonder
8a8eccaeaa Make "land ownership details" visible always
Closes #71
2018-05-26 11:36:44 -04:00
Carl van Tonder
006262c7ea Lengthen "key actors" and "who..involved" fields 2018-05-24 20:52:43 -04:00
Carl van Tonder
f595532db5 Fix migrations 2018-05-24 18:24:55 -04:00
b375de115e Fix bad validation rules 2018-05-23 19:15:30 +02:00
Carl van Tonder
c0ff616761 Prevent crash saving case study with no draft 2018-05-19 14:32:57 -04:00
Carl van Tonder
39683a4ec0 Update test for text change 2018-05-19 14:21:58 -04:00
Carl van Tonder
a1821dba58 Fix migrations 2018-05-19 14:01:43 -04:00
Carl van Tonder
0160e58491 Add language switcher widget 2018-05-19 13:53:34 -04:00
Carl van Tonder
8d2532a1b2 Convert some CharFields to TextFields 2018-05-19 13:53:34 -04:00
03e5bfe01b Extend the length of some charfields, per Tom's email 2018-05-15 15:03:57 +01:00
Carl van Tonder
f4a74e6fd0 Fix map tests, add files tests 2018-05-01 13:16:09 -04:00
Carl van Tonder
d84aa0f3b9 Avoid crash when deleting drafts 2018-05-01 01:08:40 -04:00
Carl van Tonder
8ddc0894a1 Clean-up migration 2018-04-30 22:23:45 -04:00
Carl van Tonder
6dc0b51fc3 File permissions checks 2018-04-30 22:23:36 -04:00
Carl van Tonder
e43c32b843 Extra file upload fields, delete files w/ draft 2018-04-30 22:17:18 -04:00
f4c21006de Add AJAX file delete support and upload notifications, make UI nicer 2018-04-26 18:03:04 +10:00
Carl van Tonder
935af1355b Further work on multi-file-upload 2018-04-23 01:15:33 -04:00
Carl van Tonder
bb326bfed8 Initial file uploding w/ new "files" app 2018-04-19 15:57:18 -04:00
Carl van Tonder
7436fa7e2e Prevent duplicate form media loading..
..by setting BaseCaseStudyForm.helper.include_media = False
2018-04-19 15:14:54 -04:00
Carl van Tonder
f8695fae3c Make welcome text translatable 2018-04-19 13:01:16 -04:00
Carl van Tonder
816bc7f13d Add missing migration 2018-04-19 12:57:53 -04:00
0758b6e223 Oops, I removed a line I shouldn't have from 677f6a85a 2018-04-16 14:33:07 +10:00
677f6a85a9 Add coordinates autocomplete widget & data (#32)
Just tweaks based on what Carl had already written in dce53630 and b97d421a
2018-04-16 14:27:13 +10:00
a171fb6d14 Add hello overlay (closes #17) 2018-04-16 12:59:48 +10:00