Magnus Hagander [Sat, 5 May 2018 17:42:59 +0000 (19:42 +0200)]
Fix board email address on trademark page
It should be board@postgresql.eu, not .org.
Dave Page [Thu, 3 May 2018 10:46:23 +0000 (11:46 +0100)]
Add trademark info.
Magnus Hagander [Fri, 27 Apr 2018 13:31:44 +0000 (15:31 +0200)]
Update privacy policy with a lot more details
In particular, details about what we store, how long we store it, and
why. It's always nice to have, and extra important in light of new
regulations coming up.
Magnus Hagander [Thu, 26 Apr 2018 19:33:39 +0000 (21:33 +0200)]
Make it possible to view reports on anonymized data
In particular, make it possible to view tshirt size distributions even
after we have anonymized the data, since we keep aggregates on it.
Magnus Hagander [Thu, 26 Apr 2018 19:23:34 +0000 (21:23 +0200)]
Support purging of personal data from conference registrations
Once a conference is in the past, purge physical addresses, phone
numbers, dietary needs and tshirt sizes from registrations, since they
can be considered personal data and we shouldn't keep that around.
Before purging, aggregate values for tshirt sizes and dietary needs in
an anonymous way, to make sure we can look back at past events to get
statistics for future ones.
Magnus Hagander [Thu, 26 Apr 2018 10:41:44 +0000 (12:41 +0200)]
Allow opt-out functionality without a token
A token is used to easily access opt-out when the user is not
registered. But we should still allow users that still know their
account to just use their existing login to control all opt-out
settings.
Dave Page [Thu, 26 Apr 2018 10:23:38 +0000 (11:23 +0100)]
Fix typo.
Dave Page [Thu, 26 Apr 2018 09:55:20 +0000 (10:55 +0100)]
Update Django version
Dave Page [Thu, 26 Apr 2018 09:13:25 +0000 (10:13 +0100)]
Ignore pycharms project files.
Magnus Hagander [Sun, 15 Apr 2018 17:08:54 +0000 (19:08 +0200)]
The sponsor VAT saga continues...
So we have a new round of rules, let's see if they are the final ones
this time:
* If sponsor is from France with VAT number, charge VAT normally
* If sponsor is from rest of EU with VAT number, reverse VAT
* If sponsor is from rest of EU *without* VAT number, charge VAT
* If sponsor is from outside EU, don't charge VAT
(The last point is the new one)
Magnus Hagander [Sat, 14 Apr 2018 18:38:07 +0000 (20:38 +0200)]
InvoiceManager must be instantiated
Magnus Hagander [Sat, 14 Apr 2018 18:37:22 +0000 (20:37 +0200)]
Add missing import
Magnus Hagander [Sat, 14 Apr 2018 18:36:49 +0000 (20:36 +0200)]
Add missing import
Magnus Hagander [Sat, 14 Apr 2018 18:36:06 +0000 (20:36 +0200)]
Add missing import
Magnus Hagander [Sat, 14 Apr 2018 18:30:52 +0000 (20:30 +0200)]
Add tool to flag completed Trustly refunds
For Trustly we don't get separate notificatoins when refunds complete.
So instead, add this tool that polls the status of any pending refunds,
and completes the process when they are listed as refunded.
This has been missing functionality since we added Trustly payments, but
we haven't had any refunds to process yet..
Magnus Hagander [Sat, 14 Apr 2018 18:14:19 +0000 (20:14 +0200)]
Send alerts if API issued refunds don't complete within 3 days
Magnus Hagander [Fri, 13 Apr 2018 12:50:42 +0000 (14:50 +0200)]
Fix typo
Magnus Hagander [Wed, 11 Apr 2018 17:01:53 +0000 (19:01 +0200)]
Add some missing spacing
Magnus Hagander [Wed, 11 Apr 2018 16:29:17 +0000 (18:29 +0200)]
Support a "select all" button when copying
Magnus Hagander [Wed, 11 Apr 2018 16:05:27 +0000 (18:05 +0200)]
Implement copy functionality for basic models
teis adds copy functionality for stration types, registration classes,
tracks, rooms, sessions, schedule slots, volunteer slots and
feedback questions.
This replaces all the functionality in the old cli tool, so remove that
tool.
Magnus Hagander [Wed, 11 Apr 2018 15:40:20 +0000 (17:40 +0200)]
Add support for copying data from previous conference
This will make it easier to copy things like feedback, schdule slots
etc. Uses the backend list functionality already inplace, and supports
basic transformation of the data (such as adding days to a timeslot so
that it falls within the new conference days). Each different type of
object needs to implement the actual copying functionality, to make sure
it can deal with mappings and such.
Magnus Hagander [Wed, 11 Apr 2018 15:33:02 +0000 (17:33 +0200)]
Use DataTables for backend editing lists
This allows client side sorting and searching of the tables. It's not
super-adapted to our needs, but this is only for internal use anyway,
and it makes a lot of things a lot easier to work with.
Magnus Hagander [Wed, 11 Apr 2018 16:06:09 +0000 (18:06 +0200)]
Make the plural name of a form available
Magnus Hagander [Tue, 10 Apr 2018 13:39:38 +0000 (15:39 +0200)]
Change default for allow_new/allow_delete
Default should reflect what every place except two were using :) That
saves a lot of repeated code.
Magnus Hagander [Thu, 12 Apr 2018 10:13:41 +0000 (12:13 +0200)]
Fix db storage class for new django
Magnus Hagander [Fri, 6 Apr 2018 11:54:08 +0000 (13:54 +0200)]
Remove leftover testing/debugging code :)
Magnus Hagander [Fri, 6 Apr 2018 11:51:36 +0000 (13:51 +0200)]
Allow wider popovers
Magnus Hagander [Fri, 6 Apr 2018 11:44:51 +0000 (13:44 +0200)]
Add view to show all pending invoices for a conference
Andreas Scherbaum [Thu, 5 Apr 2018 22:33:30 +0000 (00:33 +0200)]
Add description how the reg transfer works.
Magnus Hagander [Thu, 5 Apr 2018 14:36:50 +0000 (16:36 +0200)]
Add backend editor for discount codes
Magnus Hagander [Thu, 5 Apr 2018 14:34:46 +0000 (16:34 +0200)]
Fix breadcrumbs capitalization
Magnus Hagander [Thu, 5 Apr 2018 14:34:17 +0000 (16:34 +0200)]
Don't give admin edit link when creating new objects
It doesn't work anyway.
Magnus Hagander [Thu, 5 Apr 2018 14:33:42 +0000 (16:33 +0200)]
Support two-step creation of new objects
Allows a pick of object in the first step followed by the actual edit
form later, for new backend objects.
Magnus Hagander [Thu, 5 Apr 2018 13:02:27 +0000 (15:02 +0200)]
Add editor for feedback questions
Magnus Hagander [Thu, 5 Apr 2018 13:02:11 +0000 (15:02 +0200)]
Don't set form-control on checkboxes
This renders spectacularly badly in newer firefoxes :)
Magnus Hagander [Thu, 5 Apr 2018 12:52:13 +0000 (14:52 +0200)]
Editor for additional options
Magnus Hagander [Tue, 3 Apr 2018 14:22:10 +0000 (16:22 +0200)]
Automatically validate that all dates are within conference date
Can be overriden on a per-field bases, if we ever find a reason to.
Magnus Hagander [Tue, 3 Apr 2018 14:15:08 +0000 (16:15 +0200)]
Add backend forms for ScheduleSlots and VolunteerSlots
Magnus Hagander [Tue, 3 Apr 2018 14:14:55 +0000 (16:14 +0200)]
Add ability to change display field in backend list
Magnus Hagander [Mon, 2 Apr 2018 15:13:51 +0000 (17:13 +0200)]
Add a state graph for the different conference session statuses
This shows a state graph indicating which actions (by either speaker or
by administrator) should cause a move between the different states.
Wrote this a long time ago, but clearly forgot to commit.
Magnus Hagander [Mon, 2 Apr 2018 15:12:55 +0000 (17:12 +0200)]
Implement editing of session statuses in backend
This implements the core of the workflow in a way that at least does a
decent job of guiding the user not to move sessions between incorrect
statuses.
Magnus Hagander [Mon, 2 Apr 2018 15:08:58 +0000 (17:08 +0200)]
Move session notify queue into /events/admin/
Magnus Hagander [Mon, 2 Apr 2018 12:20:02 +0000 (14:20 +0200)]
Backend editors for sessions, rooms and tracks
Sessions are somewhat limited as some editing is still done through the
talkvote page. This should be fixed...
Magnus Hagander [Mon, 2 Apr 2018 12:00:18 +0000 (14:00 +0200)]
Don't list "None" in backend lists
Instead, just leave it empty...
Magnus Hagander [Mon, 2 Apr 2018 11:57:22 +0000 (13:57 +0200)]
Support overriding column headers in backend lists
This is needed when the value is computed (such as converting a status
int to a string)
Magnus Hagander [Mon, 2 Apr 2018 11:56:32 +0000 (13:56 +0200)]
Remove conference name from autogenerated room/track names
These are reall only used in the admin interface today, so it should
make no real difference.
Magnus Hagander [Mon, 2 Apr 2018 10:55:18 +0000 (12:55 +0200)]
Move scheule creation and json to /events/admin/ urls
Magnus Hagander [Mon, 2 Apr 2018 10:54:09 +0000 (12:54 +0200)]
Fix schedule creation permissions
Both voters and admins should be able to work on the draft schedule, not
just testers. And admins should be able to publish the schedule, not
just superusers.
Magnus Hagander [Mon, 2 Apr 2018 10:48:34 +0000 (12:48 +0200)]
Move reports under /events/admin/ url
Magnus Hagander [Fri, 30 Mar 2018 16:14:11 +0000 (18:14 +0200)]
Attempt to better handle payment exceptions in adyen processing
The invoice API actually allows us to get the reason for why the
processing failed, so use that instead of just throwing an exception.
In particular this lets us track the case of invalid size payment in
relation to invoice amount (never happened so far), and also payments
that happen after the invoice has been deleted (theoretically possible
with creditcard payments, but very much realistic with iban payments --
it's more surprising it hasn't happened before).
In these cases create an empty accounting record that can be processed,
instead of leaving things in incomplete state.
Magnus Hagander [Fri, 30 Mar 2018 10:15:38 +0000 (12:15 +0200)]
Fix JSON/badge report when there are regs with no regtype
This could only occur for attendees that aren't actually confirmed, so
normally they would not be included in such a report because of a
filter. However, just "dump everything" is a pretty common use-case for
testing, and obviously we shouldn't *crash* in this scenario.
Spotted by ads, when doing exactly that.
Magnus Hagander [Thu, 29 Mar 2018 18:09:56 +0000 (20:09 +0200)]
Don't allow changing a reg cost after it's been used
Magnus Hagander [Thu, 29 Mar 2018 18:03:47 +0000 (20:03 +0200)]
Don't show additionaloptions fields if none exist on the conference
Magnus Hagander [Thu, 29 Mar 2018 16:50:36 +0000 (18:50 +0200)]
Remove redundant link to edit a registration in /admin/
Magnus Hagander [Thu, 29 Mar 2018 16:01:26 +0000 (18:01 +0200)]
Properly capitalize title in backend object list
Magnus Hagander [Thu, 29 Mar 2018 16:01:06 +0000 (18:01 +0200)]
Add editor for RegistrationDay
This can be used as an example for how to add a trivial form where it
should be supported to both add, delete and edit items.
Magnus Hagander [Thu, 29 Mar 2018 15:55:31 +0000 (17:55 +0200)]
Generate buttons for superuser to shortcut to django admin
Magnus Hagander [Thu, 29 Mar 2018 15:45:13 +0000 (17:45 +0200)]
Support auto-calculating VAT fields in backend forms
All entries are without VAT, but it's a nice feature to be able to
calculate the value with VAT before it's saved.
Magnus Hagander [Thu, 29 Mar 2018 15:10:48 +0000 (17:10 +0200)]
Use a HTML5 date picker for Date fields in backend
Magnus Hagander [Thu, 29 Mar 2018 14:54:25 +0000 (16:54 +0200)]
Include conference in pdfschedule template
This is needed to generate the breadcrumbs, and was clearly missed
before.
Magnus Hagander [Thu, 29 Mar 2018 14:52:34 +0000 (16:52 +0200)]
Refactor conference authentication on the backend side
This removes massive amounts of duplicated code to check that "is the
user either a superuser or an admin for this conference". Centralizing
that into the get_authenticated_conference() functions simplifies things
a lot, and deleted code is always the best type of code.
Magnus Hagander [Thu, 29 Mar 2018 14:30:35 +0000 (16:30 +0200)]
Lay the groundwork for moving metadata into the backend system
Previously all metadata was edited throuhg /admin/, which wan't very
user friendly, gave no way to separate out "normal things" and "internal
things" when editing, and made it hard to do permissions checking.
This commit creates the new concept of a "backend list" and "backend
form", which can be used as shortcuts to implement editors in the normal
backend framework instead of the admin framework. These editors are
based off a regular Form (inherited from BackendForm), and can create
all things automatically for all simple cases. All access is
automatically authenticated to conference administrators for the
specific conference.
The term backend was picked specifically to avoid name-confusion with
the builtin django admin module.
Finally, to prove the functionality, a few forms and lists were
implemented as part of the original step:
* Editor for the conference metadata itself (limited fields)
* Editor for a registration (limited fields)
* List and editor for registration classes
* List and editor for registration types
There are many more to come there before things are finished, but it's a
starting point.
Magnus Hagander [Thu, 29 Mar 2018 14:28:45 +0000 (16:28 +0200)]
Add some form utility template filters
Mostly imported from other project, adds:
* label_class (adds a class to the label for a field)
* field_class (adds a class to the field itself)
* ischeckbox (returns true if a field is a checkbox)
* isrequired_error (returns true if the error is that a field is
required)
Magnus Hagander [Thu, 29 Mar 2018 14:18:07 +0000 (16:18 +0200)]
Update verbose fieldnames for RegistrationType and RegistrationClass
In passing, also set a default=0 for cost and give it a help text.
Magnus Hagander [Thu, 29 Mar 2018 14:02:59 +0000 (16:02 +0200)]
Add a middleware to support redirects using raise
This is maybe not pretty, but very convenient..
Magnus Hagander [Thu, 29 Mar 2018 12:09:59 +0000 (14:09 +0200)]
Include "share email" on registration view
We might want to consider removing this field completely, but as long as
it exists it should of course be listed on the registration.
Magnus Hagander [Thu, 29 Mar 2018 12:07:28 +0000 (14:07 +0200)]
Add verbose names and helptexts to a bunch of fields on Conference
Magnus Hagander [Thu, 29 Mar 2018 12:00:32 +0000 (14:00 +0200)]
Don't allow welcome email to be enabled without setting contents
Magnus Hagander [Thu, 29 Mar 2018 11:59:55 +0000 (13:59 +0200)]
Make it possible to update protected fields after form is built
This is necessary to protect forms where fields are removed in the
constructor.
Andreas 'ads' Scherbaum [Thu, 29 Mar 2018 10:03:44 +0000 (12:03 +0200)]
Nicer CSS for signup admin page
Magnus Hagander [Sun, 25 Mar 2018 14:49:58 +0000 (16:49 +0200)]
Fix template loaders for django 1.11
Seems django 1.11 automatically enables caching template loader, which
of course breaks the ability to make any changes to the pages of a
website without restarting it. And there is no way to turn it off other
than to explicitly configure individual loders (the logic to turn it on
in non-debug configurations is hardcoded and cannot be changed).
Magnus Hagander [Sun, 25 Mar 2018 14:36:43 +0000 (16:36 +0200)]
No need for double headers saying Accounting
Magnus Hagander [Sun, 25 Mar 2018 14:34:10 +0000 (16:34 +0200)]
Add base template forgotten in previous commit
Magnus Hagander [Sun, 25 Mar 2018 14:32:52 +0000 (16:32 +0200)]
Centralize and clean accounting javascript
Move it to it's own .js file to avoid duplicates
Magnus Hagander [Sun, 25 Mar 2018 14:12:36 +0000 (16:12 +0200)]
Clean up HTML in accounting system
It's still pretty horrid, but this moves it closer to the standard
bootstrap templates, and removes some of the worst stuff. The direct
benefit is that it's now able to use the full width of the screen.
Magnus Hagander [Sun, 25 Mar 2018 12:43:46 +0000 (14:43 +0200)]
Move waitlist message template into admin framework
Magnus Hagander [Sun, 25 Mar 2018 12:43:39 +0000 (14:43 +0200)]
Add proper breadcrumbs to registration list
Magnus Hagander [Sun, 25 Mar 2018 12:20:10 +0000 (14:20 +0200)]
Move prepaid batch handling into the admin framework
This includes both the HTML framework like most previous commits, but
also management.
A conference admin (non-superuser) can now view prepaid batches, since
it no longer uses /admin/. They can also create new prepaid batches with
vouchers as necessary (though of course only for their own conferences).
This also removes the last legacy connection to the previous invoice
management system that was in confreg, namely relying on the invoice
management permission from that system.
And finally, it changes the creation form to use selectize and the
django plugin to do the search-for-users-when-the-list-is-too-long
functionality, so it uses the same as everything else.
Magnus Hagander [Sun, 25 Mar 2018 11:15:29 +0000 (13:15 +0200)]
Remove jon-jinja confwiki frontend templates
This was missed in commit
5507e11db6c8588d490ae16c11af018ecfb734dc which
only handled confreg, but they are both rendered the same way so these
templates are no longer used.
Magnus Hagander [Sat, 24 Mar 2018 12:22:15 +0000 (13:22 +0100)]
Move attendee reports into admin framework
In passing, fix hiding of listboxes (never worked, but was probably
supposed to..)
Magnus Hagander [Sat, 24 Mar 2018 11:56:43 +0000 (12:56 +0100)]
Render feedback results in the admin templates
Results should be in the same framework as the admin, including
breadcrumbs etc. Unlike the user facing side which should of course be
in the conference framework.
Magnus Hagander [Sat, 24 Mar 2018 11:42:10 +0000 (12:42 +0100)]
Integrate Create Schedule in the admin framework
It really just means render it under the same header, to make the
breadcrumbs work.
Magnus Hagander [Sat, 24 Mar 2018 09:28:36 +0000 (10:28 +0100)]
Fix invoice generation for bulk invoices as well
And change the previous fix to a better one while at it.
Magnus Hagander [Sat, 24 Mar 2018 09:21:08 +0000 (10:21 +0100)]
Fix invoicerow saving in create_invoice
The rows need to be saved individually before saving the invoice itself.
Magnus Hagander [Fri, 23 Mar 2018 18:18:33 +0000 (19:18 +0100)]
Fix pagination with >10 pages of accounting entries
Magnus Hagander [Fri, 23 Mar 2018 17:43:57 +0000 (18:43 +0100)]
Null parameter has no meaning on ManyToManyField
New django causes warning, so remove it even though it was and is a
no-op.
Magnus Hagander [Fri, 23 Mar 2018 15:51:55 +0000 (16:51 +0100)]
render -> render_to_response for payment processing
This udpates adyen, braintree, paypal and trustly to use the new
rendering functions.
Magnus Hagander [Fri, 23 Mar 2018 15:20:47 +0000 (16:20 +0100)]
Use render instead of render_to_response in more apps
Now also confreg, confsponsor, confwiki, newsevents, the old invoice
system and the root.
Magnus Hagander [Fri, 23 Mar 2018 15:20:39 +0000 (16:20 +0100)]
Fix template bug
Magnus Hagander [Fri, 23 Mar 2018 15:20:14 +0000 (16:20 +0100)]
Fix incorrect number of columns in list in template
Magnus Hagander [Fri, 23 Mar 2018 15:18:48 +0000 (16:18 +0100)]
Remove cannot-reach codepath for conference template rendering
All user-facing conference templates have been migrated to jinja, so
there is no way to reach this fallback codepath anymore.
Magnus Hagander [Fri, 23 Mar 2018 15:17:53 +0000 (16:17 +0100)]
Fix model diffing to work on new django
Still works on the old one, so no reason not to use the cleaner
functions.
Magnus Hagander [Fri, 23 Mar 2018 15:16:59 +0000 (16:16 +0100)]
ModelChoiceFields must reference a manager
Can't just reference the class, has to be a manager. We're going to
overwrite the actual queryset in __init__ anyway, so just specify id=-1
to get something.
Magnus Hagander [Fri, 23 Mar 2018 14:26:38 +0000 (15:26 +0100)]
Update template configuration to be compatible with new django
Backwards compatible change, so might as well do all of it.
Magnus Hagander [Fri, 23 Mar 2018 14:26:20 +0000 (15:26 +0100)]
form._changed_data doesn't exist anymore
Magnus Hagander [Fri, 23 Mar 2018 14:26:00 +0000 (15:26 +0100)]
template.render() should not use a context, just a dict
Magnus Hagander [Fri, 23 Mar 2018 14:25:26 +0000 (15:25 +0100)]
Fix InvoicePresentationWrapper not to inherit
It already stored the value inside itself, so there's no value to
inheritance and it breaks with newer djangos
Magnus Hagander [Fri, 23 Mar 2018 14:24:30 +0000 (15:24 +0100)]
Use render instead of render_to_response in some apps
For accounting, elections, invoices and memberships use the new way of
doing rendering. This is a backwards compatible mechanical change for
the simple apps.
Magnus Hagander [Fri, 23 Mar 2018 14:22:28 +0000 (15:22 +0100)]
Update format of URL listings
Needed for compatibility with newer django. Fully backwards compatible.
In passing, tabify the list of urls, since we're rewriting every line
anyway.
Magnus Hagander [Fri, 23 Mar 2018 14:19:07 +0000 (15:19 +0100)]
Remove unused import