Sébastien Besnier
baf3bac910
Add .env file
4 years ago
Pierre-Louis Guhur
ed9c51748a
fix tests on election
4 years ago
guhur
0c3be59cc2
Merge pull request #8 from MieuxVoter/guhur/doodlelike
...
Guhur/doodlelike
4 years ago
Pierre-Louis Guhur
33b7bd1854
provide more details on results endpoint
5 years ago
Pierre-Louis Guhur
32e9cf1777
Doodle-like
5 years ago
guhur
1fbd3d2581
Merge pull request #6 from MieuxVoter/guhur/is_finished
...
Add is_finished tag
5 years ago
guhur
ae27ff90fb
Merge pull request #7 from MieuxVoter/guhur/update_dep
...
Update to django >= 2.2.4
5 years ago
Pierre-Louis Guhur
202ef49ae1
update django version
5 years ago
Pierre-Louis Guhur
4b532fc8a1
Add is_finished tag
5 years ago
guhur
50d4d761d1
Added Result computation
5 years ago
guhur
7b29c3eb81
Merge pull request #4 from MieuxVoter/seb/vote
...
Make the people vote!
5 years ago
Sébastien Besnier
effbdd442f
VULN ISSUE: upgrade drf version
...
According to Github notification, there was issue with the previous
Django Rest Framework version.
5 years ago
Sébastien Besnier
60ca5f7af9
DOCKERFIX: added "depends_on: db" in docker-compose.yml
5 years ago
Sébastien Besnier
fa0bd6ec92
BUGFIX: set the token used when voting
5 years ago
Sébastien Besnier
2ff06333aa
Votes by tokens (mails faked with print:( )
5 years ago
Sébastien Besnier
95efbb221e
Added possibility to vote on an election!
5 years ago
Sébastien Besnier
e82960d79d
Change the create election url to /api/election/
...
Rely on the POST method to indicate creation of an object is the way to do
in REST.
5 years ago
Sébastien Besnier
f262de001b
Fix url for election detail.
5 years ago
Sébastien Besnier
22dee8a99c
Added candidates to Election.
...
Since:
* we don't need to query the candidates,
* the order of the candidates matter,
I see no reason to use standart SQL relationship to represent
the list of candidates. That's why I choose to represent this list using
a PostgreSQL ability (a.k.a ArrayFields).
5 years ago
Sébastien Besnier
4926340376
Use random id for Election.
...
This way, the id of the election is unguessable and we can use it in the
url.
I had to tweak the serializer, otherwise the id was possibly given by user.
5 years ago
Sébastien Besnier
5e442450e3
Make the RetrieveView working.
5 years ago
Sébastien Besnier
bd6b5c4b40
Remove ElectionDetailsAPIViewTestCase
5 years ago
Sébastien Besnier
8bb5b7d507
Remove ElectionResultView
...
When a user requests an election, if the election is over or has no
end time, the server sends back the results with the other data.
5 years ago
Sébastien Besnier
2e5f7c975b
Test for election creation
...
->Create a an election with title.
->Get back the id of the created election
->Get the election back and check the title is the same
5 years ago
Sébastien Besnier
c21144a473
Refactor tests
5 years ago
Gilles Pavan
94d715874c
Merge pull request #1 from MieuxVoter/seb/docker-postgresql
...
Replaced SQLite with Postgresql
5 years ago
Gilles Pavan
ff3c7c909c
Merge pull request #2 from MieuxVoter/seb/fix-readme
...
Fix little typos & add "create user" command in README
5 years ago
Sébastien Besnier
7567c891ff
Fix little typos & add "create user" command in README
5 years ago
Sébastien Besnier
40c7d5dffb
Set a fixed version for postgresql python package
5 years ago
Sébastien Besnier
b7be7c2ceb
Replaced SQLite with Postgresql
...
I've followed the official docker guide :
https://docs.docker.com/compose/django/
5 years ago
Sébastien Besnier
108df9e9d6
Set fixed version for Django in requirements
...
The version was indicated thanks to a ">=" condition which is not secure:
new versions of Django can break existing code.
5 years ago
Gilles Pavan
387b8117b3
adding tests
5 years ago
Gilles Pavan
72f1d248e3
Fixing Django vulnerability
5 years ago
Gilles Pavan
9fb774e8c8
Fixing vulnerability
5 years ago
Gilles Pavan
1000bb7099
starting project
5 years ago