pgeu-website.git
7 years agoFix board email address on trademark page
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.

7 years agoAdd trademark info.
Dave Page [Thu, 3 May 2018 10:46:23 +0000 (11:46 +0100)]
Add trademark info.

7 years agoUpdate privacy policy with a lot more details
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.

7 years agoMake it possible to view reports on anonymized data
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.

7 years agoSupport purging of personal data from conference registrations
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.

7 years agoAllow opt-out functionality without a token
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.

7 years agoFix typo.
Dave Page [Thu, 26 Apr 2018 10:23:38 +0000 (11:23 +0100)]
Fix typo.

7 years agoUpdate Django version
Dave Page [Thu, 26 Apr 2018 09:55:20 +0000 (10:55 +0100)]
Update Django version

7 years agoIgnore pycharms project files.
Dave Page [Thu, 26 Apr 2018 09:13:25 +0000 (10:13 +0100)]
Ignore pycharms project files.

7 years agoThe sponsor VAT saga continues...
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)

7 years agoInvoiceManager must be instantiated
Magnus Hagander [Sat, 14 Apr 2018 18:38:07 +0000 (20:38 +0200)]
InvoiceManager must be instantiated

7 years agoAdd missing import
Magnus Hagander [Sat, 14 Apr 2018 18:37:22 +0000 (20:37 +0200)]
Add missing import

7 years agoAdd missing import
Magnus Hagander [Sat, 14 Apr 2018 18:36:49 +0000 (20:36 +0200)]
Add missing import

7 years agoAdd missing import
Magnus Hagander [Sat, 14 Apr 2018 18:36:06 +0000 (20:36 +0200)]
Add missing import

7 years agoAdd tool to flag completed Trustly refunds
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..

7 years agoSend alerts if API issued refunds don't complete within 3 days
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

7 years agoFix typo
Magnus Hagander [Fri, 13 Apr 2018 12:50:42 +0000 (14:50 +0200)]
Fix typo

7 years agoAdd some missing spacing
Magnus Hagander [Wed, 11 Apr 2018 17:01:53 +0000 (19:01 +0200)]
Add some missing spacing

7 years agoSupport a "select all" button when copying
Magnus Hagander [Wed, 11 Apr 2018 16:29:17 +0000 (18:29 +0200)]
Support a "select all" button when copying

7 years agoImplement copy functionality for basic models
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.

7 years agoAdd support for copying data from previous conference
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.

7 years agoUse DataTables for backend editing lists
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.

7 years agoMake the plural name of a form available
Magnus Hagander [Wed, 11 Apr 2018 16:06:09 +0000 (18:06 +0200)]
Make the plural name of a form available

7 years agoChange default for allow_new/allow_delete
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.

7 years agoFix db storage class for new django
Magnus Hagander [Thu, 12 Apr 2018 10:13:41 +0000 (12:13 +0200)]
Fix db storage class for new django

7 years agoRemove leftover testing/debugging code :)
Magnus Hagander [Fri, 6 Apr 2018 11:54:08 +0000 (13:54 +0200)]
Remove leftover testing/debugging code :)

7 years agoAllow wider popovers
Magnus Hagander [Fri, 6 Apr 2018 11:51:36 +0000 (13:51 +0200)]
Allow wider popovers

7 years agoAdd view to show all pending invoices for a conference
Magnus Hagander [Fri, 6 Apr 2018 11:44:51 +0000 (13:44 +0200)]
Add view to show all pending invoices for a conference

7 years agoAdd description how the reg transfer works.
Andreas Scherbaum [Thu, 5 Apr 2018 22:33:30 +0000 (00:33 +0200)]
Add description how the reg transfer works.

7 years agoAdd backend editor for discount codes
Magnus Hagander [Thu, 5 Apr 2018 14:36:50 +0000 (16:36 +0200)]
Add backend editor for discount codes

7 years agoFix breadcrumbs capitalization
Magnus Hagander [Thu, 5 Apr 2018 14:34:46 +0000 (16:34 +0200)]
Fix breadcrumbs capitalization

7 years agoDon't give admin edit link when creating new objects
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.

7 years agoSupport two-step creation of new objects
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.

7 years agoAdd editor for feedback questions
Magnus Hagander [Thu, 5 Apr 2018 13:02:27 +0000 (15:02 +0200)]
Add editor for feedback questions

7 years agoDon't set form-control on checkboxes
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 :)

7 years agoEditor for additional options
Magnus Hagander [Thu, 5 Apr 2018 12:52:13 +0000 (14:52 +0200)]
Editor for additional options

7 years agoAutomatically validate that all dates are within conference date
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.

7 years agoAdd backend forms for ScheduleSlots and VolunteerSlots
Magnus Hagander [Tue, 3 Apr 2018 14:15:08 +0000 (16:15 +0200)]
Add backend forms for ScheduleSlots and VolunteerSlots

7 years agoAdd ability to change display field in backend list
Magnus Hagander [Tue, 3 Apr 2018 14:14:55 +0000 (16:14 +0200)]
Add ability to change display field in backend list

7 years agoAdd a state graph for the different conference session statuses
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.

7 years agoImplement editing of session statuses in backend
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.

7 years agoMove session notify queue into /events/admin/
Magnus Hagander [Mon, 2 Apr 2018 15:08:58 +0000 (17:08 +0200)]
Move session notify queue into /events/admin/

7 years agoBackend editors for sessions, rooms and tracks
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...

7 years agoDon't list "None" in backend lists
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...

7 years agoSupport overriding column headers in backend lists
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)

7 years agoRemove conference name from autogenerated room/track names
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.

7 years agoMove scheule creation and json to /events/admin/ urls
Magnus Hagander [Mon, 2 Apr 2018 10:55:18 +0000 (12:55 +0200)]
Move scheule creation and json to /events/admin/ urls

7 years agoFix schedule creation permissions
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.

7 years agoMove reports under /events/admin/ url
Magnus Hagander [Mon, 2 Apr 2018 10:48:34 +0000 (12:48 +0200)]
Move reports under /events/admin/ url

7 years agoAttempt to better handle payment exceptions in adyen processing
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.

7 years agoFix JSON/badge report when there are regs with no regtype
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.

7 years agoDon't allow changing a reg cost after it's been used
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

7 years agoDon't show additionaloptions fields if none exist on the conference
Magnus Hagander [Thu, 29 Mar 2018 18:03:47 +0000 (20:03 +0200)]
Don't show additionaloptions fields if none exist on the conference

7 years agoRemove redundant link to edit a registration in /admin/
Magnus Hagander [Thu, 29 Mar 2018 16:50:36 +0000 (18:50 +0200)]
Remove redundant link to edit a registration in /admin/

7 years agoProperly capitalize title in backend object list
Magnus Hagander [Thu, 29 Mar 2018 16:01:26 +0000 (18:01 +0200)]
Properly capitalize title in backend object list

7 years agoAdd editor for RegistrationDay
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.

7 years agoGenerate buttons for superuser to shortcut to django admin
Magnus Hagander [Thu, 29 Mar 2018 15:55:31 +0000 (17:55 +0200)]
Generate buttons for superuser to shortcut to django admin

7 years agoSupport auto-calculating VAT fields in backend forms
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.

7 years agoUse a HTML5 date picker for Date fields in backend
Magnus Hagander [Thu, 29 Mar 2018 15:10:48 +0000 (17:10 +0200)]
Use a HTML5 date picker for Date fields in backend

7 years agoInclude conference in pdfschedule template
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.

7 years agoRefactor conference authentication on the backend side
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.

7 years agoLay the groundwork for moving metadata into the backend system
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.

7 years agoAdd some form utility template filters
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)

7 years agoUpdate verbose fieldnames for RegistrationType and RegistrationClass
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.

7 years agoAdd a middleware to support redirects using raise
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..

7 years agoInclude "share email" on registration view
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.

7 years agoAdd verbose names and helptexts to a bunch of fields on Conference
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

7 years agoDon't allow welcome email to be enabled without setting contents
Magnus Hagander [Thu, 29 Mar 2018 12:00:32 +0000 (14:00 +0200)]
Don't allow welcome email to be enabled without setting contents

7 years agoMake it possible to update protected fields after form is built
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.

7 years agoNicer CSS for signup admin page
Andreas 'ads' Scherbaum [Thu, 29 Mar 2018 10:03:44 +0000 (12:03 +0200)]
Nicer CSS for signup admin page

7 years agoFix template loaders for django 1.11
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).

7 years agoNo need for double headers saying Accounting
Magnus Hagander [Sun, 25 Mar 2018 14:36:43 +0000 (16:36 +0200)]
No need for double headers saying Accounting

7 years agoAdd base template forgotten in previous commit
Magnus Hagander [Sun, 25 Mar 2018 14:34:10 +0000 (16:34 +0200)]
Add base template forgotten in previous commit

7 years agoCentralize and clean accounting javascript
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

7 years agoClean up HTML in accounting system
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.

7 years agoMove waitlist message template into admin framework
Magnus Hagander [Sun, 25 Mar 2018 12:43:46 +0000 (14:43 +0200)]
Move waitlist message template into admin framework

7 years agoAdd proper breadcrumbs to registration list
Magnus Hagander [Sun, 25 Mar 2018 12:43:39 +0000 (14:43 +0200)]
Add proper breadcrumbs to registration list

7 years agoMove prepaid batch handling into the admin framework
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.

7 years agoRemove jon-jinja confwiki frontend templates
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.

7 years agoMove attendee reports into admin framework
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..)

7 years agoRender feedback results in the admin templates
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.

7 years agoIntegrate Create Schedule in the admin 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.

7 years agoFix invoice generation for bulk invoices as well
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.

7 years agoFix invoicerow saving in create_invoice
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.

7 years agoFix pagination with >10 pages of accounting entries
Magnus Hagander [Fri, 23 Mar 2018 18:18:33 +0000 (19:18 +0100)]
Fix pagination with >10 pages of accounting entries

7 years agoNull parameter has no meaning on ManyToManyField
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.

7 years agorender -> render_to_response for payment processing
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.

7 years agoUse render instead of render_to_response in more apps
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.

7 years agoFix template bug
Magnus Hagander [Fri, 23 Mar 2018 15:20:39 +0000 (16:20 +0100)]
Fix template bug

7 years agoFix incorrect number of columns in list in template
Magnus Hagander [Fri, 23 Mar 2018 15:20:14 +0000 (16:20 +0100)]
Fix incorrect number of columns in list in template

7 years agoRemove cannot-reach codepath for conference template rendering
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.

7 years agoFix model diffing to work on new django
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.

7 years agoModelChoiceFields must reference a manager
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.

7 years agoUpdate template configuration to be compatible with new django
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.

7 years agoform._changed_data doesn't exist anymore
Magnus Hagander [Fri, 23 Mar 2018 14:26:20 +0000 (15:26 +0100)]
form._changed_data doesn't exist anymore

7 years agotemplate.render() should not use a context, just a dict
Magnus Hagander [Fri, 23 Mar 2018 14:26:00 +0000 (15:26 +0100)]
template.render() should not use a context, just a dict

7 years agoFix InvoicePresentationWrapper not to inherit
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

7 years agoUse render instead of render_to_response in some apps
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.

7 years agoUpdate format of URL listings
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.

7 years agoRemove unused import
Magnus Hagander [Fri, 23 Mar 2018 14:19:07 +0000 (15:19 +0100)]
Remove unused import