Commit graph

114 commits

Author SHA1 Message Date
Sachi King
21b2a01a84 Py2 compatability has been broke elsewhere drop it
This is all noop in Py3, and Py2 is broke now in various places.
Dropping Py2 code as it will not be a thing going forward.

Django 2 is the next release, Py2 support will be dropped, as such,
dropping this is forward looking.
2017-04-29 15:47:19 +10:00
Sachi King
298b162be6 Flake8 Fixes
Mostly whitespace fixes
Some unicode fixes
Fixed up CSV writer.  str is not bytes and all.
2017-04-17 22:51:48 +10:00
Sachi King
ecf14b514d Remove print statements.
I was originally going to switch to print function, but frankly I can't
see any reason to keep these.  I don't know what data it's leaking into
the logs, but it certainly doesn't seem useful

StringIO is not in Py3.  And it's not used at all, so removing that
import.  Seems to work with Py3 now.  More testing is required.
2017-04-17 15:47:10 +10:00
Sachi King
d5986de870 Use django's login_required decorator
This only seems to be here to have some custom login_url used bypassing
django's model.  Well as we want to use django's model, this just won't
do.  So lets move to using django's model.
2017-03-26 12:32:32 +11:00
Christopher Neugebauer
699b32b938 Adds “publish changes” behaviour to views so that we can publish edits to abstracts. 2016-09-18 15:52:45 +10:00
Scott Bragg
433a99a402 All the migrations seem fixed now 2016-09-17 15:53:47 +10:00
Scott Bragg
c7608fb0d5 Added ResultNotification to admin, fixed subject as template 2016-09-03 13:16:05 +10:00
Scott Bragg
420d8ec870 Remove description from Presentation, add fields to proposal for notification template. 2016-09-03 12:48:31 +10:00
Christopher Neugebauer
d9b1583dfe Adds more fields to the reviews CSV 2016-08-25 10:40:21 +10:00
Christopher Neugebauer
efd6ff88f8 "Random selection" change
Reduces the frequency with which controversial proposals are brought to the front of the review queue.
2016-08-19 10:29:04 +10:00
Christopher Neugebauer
d56bcea2e6 Makes the “reviewer’s reviews” page filter by section 2016-08-17 08:09:21 +10:00
Christopher Neugebauer
5735c7745e The “free for all” random reviews should now direct reviewers to under-reviewed proposals more generally. 2016-08-17 07:44:28 +10:00
Christopher Neugebauer
07198b2ecf Direct reviewers to the controversial talks instead of the indifferent talks 2016-08-17 07:35:46 +10:00
Christopher Neugebauer
7b6843ca1e all-reviews CSV now includes the proposal type rather than the proposal section 2016-08-17 07:27:32 +10:00
Christopher Neugebauer
32c2d697b0 PEBACK 3 2016-08-16 09:35:34 +10:00
Christopher Neugebauer
20ad44236b PEBCAK 2 removed 2016-08-16 09:34:04 +10:00
Christopher Neugebauer
faa30b8866 Update views.py
PEBCAK
2016-08-16 09:14:50 +10:00
Scott Bragg
124335cc7c Merge branch 'lca2017' into chrisjrn/20160815
Conflicts:
	symposion/reviews/views.py
2016-08-15 23:02:49 +10:00
Christopher Neugebauer
b9b27abdce sigh 2016-08-15 22:42:54 +10:00
Scott Bragg
3f5ee591b6 Revert "(un-oops)" 2016-08-15 18:56:54 +10:00
Christopher Neugebauer
cc6db4ed88 Fixes some errors with reviewer averages 2016-08-15 15:35:25 +10:00
Christopher Neugebauer
9223c8fc90 Adds “Submit review and jump to random proposal” button 2016-08-15 12:22:40 +10:00
Christopher Neugebauer
9ae17146df More work on the reviewers list 2016-08-15 11:11:25 +10:00
Christopher Neugebauer
24f8ac8757 Makes the reviewer proposals list render properly 2016-08-15 10:44:44 +10:00
Christopher Neugebauer
3217f43af2 Adds abstains and averages to the reviewers scores list. 2016-08-15 10:41:51 +10:00
Christopher Neugebauer
2a6c192449 Refactors the CSV piece to be nicer than it previously was. 2016-08-15 10:17:27 +10:00
Christopher Neugebauer
29fa7c63a9 Makes the random proposal button take you to under reviewed proposals.
Fixes #38
2016-08-13 12:19:58 +10:00
Christopher Neugebauer
03a231093f For some reason, our vote label in reviews.py used a unicode en dash. Oops.
Fixes #34.
2016-08-02 10:53:53 +10:00
Christopher Neugebauer
c0f4707032 Adds the speaker's e-mail address to the CSV output 2016-07-25 14:24:25 -07:00
Christopher Neugebauer
f126330390 Handles unicode strings properly. 2016-07-04 22:18:34 +10:00
Christopher Neugebauer
6ebd0f0905 snoops 2016-07-04 16:28:31 +10:00
Christopher Neugebauer
6811708b33 Adds a view that returns all proposals in CSV format.
Fixes #27
2016-07-04 16:10:02 +10:00
Scott Bragg
7225dcd660 Merge pull request #22 from lca2017/chrisjrn/21-chairs-can-see-own-proposals
Lets programme chairs see their own proposals.
2016-06-29 22:26:46 +10:00
Christopher Neugebauer
d4230feab0 #16 adds view for jumping to a random proposal 2016-06-29 16:00:07 +10:00
Christopher Neugebauer
d43d42bbc3 Fixes #21 — the check_speaker argument to proposals_generator is *false* for section chairs. 2016-06-29 15:16:24 +10:00
Christopher Neugebauer
7f3ed91dae vote_count now only counts non-abstaining votes. Fixes #19 2016-06-19 18:39:07 +10:00
Christopher Neugebauer
14dea7eafa Fixes deletion of reviews 2016-06-19 18:38:14 +10:00
Christopher Neugebauer
57acd04852 Removes a block of egregious stupidity from update_vote and replaces with something that actually works 2016-06-19 18:37:54 +10:00
Christopher Neugebauer
d305cd8c13 Requires comments for non-abstain votes only 2016-06-18 17:07:21 +10:00
Christopher Neugebauer
6e133970d9 Removes div-by-zero error if the first vote is an abstention 2016-06-18 17:01:56 +10:00
Christopher Neugebauer
47a6f212f2 Add display of scores to the review list 2016-06-18 13:13:18 +10:00
Christopher Neugebauer
28592e352c More changes that make abstention work 2016-06-18 13:07:13 +10:00
Christopher Neugebauer
be4404c602 #2 Adds abstain vote type and revises vote score to account for abstention. 2016-06-18 11:40:18 +10:00
Scott Bragg
ce122994cc Changed admin to the 'can_manage' permission and added an is_manager to the page context 2016-06-13 21:32:55 +10:00
Scott Bragg
acc1b1490e Update css_class methods to use new vote scoring (removed VOTE_ZERO) 2016-06-13 20:46:13 +10:00
Scott Bragg
f1f29c6f61 Replaced +1/+0/-0/-1 voting with +2/+1/-1/-2 (fixes lca2017/symposion/#1) 2016-06-10 15:29:09 +10:00
Martey Dodoo
78d13a9ffa Fix queryset used in "Not Reviewed" view.
The `speaker` field on the `Proposal` model corresponds to a `Speaker`,
not a `User`, so the old queryset created a ValueError.
2016-03-10 20:35:41 -05:00
Patrick Altman
7b77b9aa29 Drop deprecated url patterns format 2016-02-27 16:54:42 -06:00
Patrick Altman
031ee3807e Fix typo 2015-10-16 19:54:11 -05:00
Patrick Altman
11f697d137 Massively upgrade symposion
* Remove markitup (to be replaced with Ace editor)
* Use DUA decorators
* Removed custom signup bits
* Upgraded dependencies
* Added migrations
* Namespaced template locations
* Removed html5parser/sanitizer (for now) - parsing functionality
should be moved out entirely to a hooks
* Replaced ProposalScoreExpression object with a  function that returns
F() expressions
2015-10-16 12:37:35 -05:00