-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #243 from Volontaria/develop
New release
- Loading branch information
Showing
65 changed files
with
649 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: python | ||
|
||
dist: xenial | ||
python: | ||
- 3.6 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# CHANGELOG | ||
|
||
## 2.0 | ||
|
||
We updated our version of `django-cors-headers`, but this change include a breaking change, you need to update | ||
your `CORS_ORIGIN_WHITELIST` according | ||
to [their documentation](https://github.com/ottoyiu/django-cors-headers/blob/master/HISTORY.rst#300-2019-05-10) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
Django==2.1.5 | ||
django-filter==2.0.0 | ||
djangorestframework==3.8.2 | ||
Markdown==2.6.11 | ||
Django==2.2.14 | ||
django-filter==2.2.0 | ||
djangorestframework==3.10.3 | ||
Markdown==3.2.1 | ||
drfdocs==0.0.11 | ||
django-cors-headers==2.4.0 | ||
django-cors-headers==3.0.2 | ||
Faker==0.8.17 | ||
factory-boy==2.10.0 | ||
django-import-export==1.0.1 | ||
django-anymail==4.2 | ||
django-import-export==2.0.1 | ||
django-anymail==6.1 | ||
coreapi==2.3.3 | ||
django-orderable==6.0.1 | ||
django-ckeditor==5.7.1 | ||
django-reversion==3.0.3 | ||
xlrd==1.2.0 | ||
xlwt==1.3.0 | ||
openpyxl==3.0.3 |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from rest_framework import permissions | ||
|
||
|
||
class IsAdminOrReadOnly(permissions.BasePermission): | ||
""" | ||
Custom permission to only allow admins to modify objects. | ||
""" | ||
|
||
def has_permission(self, request, view): | ||
# Read permissions are allowed to any request, | ||
# so we'll always allow GET, HEAD or OPTIONS requests. | ||
if request.method in permissions.SAFE_METHODS: | ||
return True | ||
|
||
return request.user.is_staff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
source/apiVolontaria/apiVolontaria/tests/tests_model_ActionToken.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
source/apiVolontaria/apiVolontaria/tests/tests_model_Profile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.