aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* 100% coverage for account.pyGravatar Leon Sandøy2020-07-16-29/+30
| | | | https://github.com/python-discord/site/issues/305
* Rename AllowList to AllowDenyList.Gravatar Leon Sandøy2020-07-16-55/+48
| | | | https://github.com/python-discord/site/issues/305
* Fix some broken tests.Gravatar Leon Sandøy2020-07-16-8/+7
| | | | | | | | | | The test_utils_account.py tests were never running, because the folder they were in had no __init__.py file. The test_models.py file was failing because it had an outdated import of the ModelReprMixin, which has moved to a new file. https://github.com/python-discord/site/issues/305
* Improve some docstrings.Gravatar Leon Sandøy2020-07-16-6/+26
| | | | https://github.com/python-discord/site/issues/305
* Add tests for the AllowList model.Gravatar Leon Sandøy2020-07-16-0/+104
| | | | https://github.com/python-discord/site/issues/305
* Fix a bug in an old migration.Gravatar Leon Sandøy2020-07-16-2/+2
| | | | https://github.com/python-discord/site/issues/305
* Return id from the AllowListSerializer.Gravatar Leon Sandøy2020-07-15-8/+15
| | | | https://github.com/python-discord/site/issues/305
* Add a UniqueConstraint to prevent duplicates.Gravatar Leon Sandøy2020-07-15-0/+21
| | | | https://github.com/python-discord/site/issues/305
* Add a migration for the new AllowList model.Gravatar Leon Sandøy2020-07-15-0/+29
| | | | https://github.com/python-discord/site/issues/305
* Set up url forwarding for the viewset.Gravatar Leon Sandøy2020-07-15-44/+24
| | | | https://github.com/python-discord/site/issues/305
* Minor fixes for imports and __init__ files.Gravatar Leon Sandøy2020-07-15-12/+13
| | | | https://github.com/python-discord/site/issues/305
* Allowlist viewset.Gravatar Leon Sandøy2020-07-15-0/+54
| | | | https://github.com/python-discord/site/issues/305
* Merge branch 'master' into whitelist_systemGravatar Leon Sandøy2020-07-15-294/+354
|\
| * Merge pull request #346 from python-discord/feat/deps/344/django-3.0Gravatar Leon Sandøy2020-07-15-41/+157
| |\ | | | | | | Update to Django 3.0
| | * Merge remote-tracking branch 'origin/master' into feat/deps/344/django-3.0Gravatar MarkKoz2020-07-14-46/+9
| | |\ | | |/ | |/|
| * | Merge pull request #368 from python-discord/remove_django_crispy_bulmaGravatar Kieran Siek2020-07-15-262/+206
| |\ \ | | | | | | | | Removes django-crispy-bulma as a dependency.
| | * | Fix linting issues caused by refactor.Gravatar Leon Sandøy2020-07-15-1/+2
| | | |
| | * | Removes django_crispy_forms dependency, too.Gravatar Leon Sandøy2020-07-15-40/+7
| | | |
| | * | Removes django_crispy_bulma dependency.Gravatar Leon Sandøy2020-07-14-227/+203
| |/ /
| | * Allow empty list for user rolesGravatar MarkKoz2020-07-14-0/+22
| | | | | | | | | | | | | | | This is the same issue as 145beb37fcb4fa2f487f18b234dd72bc4e10c279. See that commit for more information.
| | * Merge migrationsGravatar MarkKoz2020-07-14-0/+14
| | |
| | * Update dependency pinsGravatar MarkKoz2020-07-14-14/+32
| | | | | | | | | | | | | | | | | | * Use release tag for django-crispy-bulma. This will yet again be changed once it's released on PyPI. * Use PyPI release for wiki
| | * Merge branch 'master' into feat/deps/344/django-3.0Gravatar MarkKoz2020-07-14-364/+515
| | |\ | | |/ | |/|
| | * Allow empty list for message embedsGravatar MarkKoz2020-03-21-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, blank=False for ArrayFields but allow_empty=True for ListField. Before DRF 3.10 there was a bug that ListField didn't respect the default value of blank=False and thus created a ListField in the serialiser with the default of allow_empty=True. We were relying on the behaviour of that bug. See encode/django-rest-framework#6597.
| | * Use basename instead of base_name with DRF routerGravatar MarkKoz2020-03-21-1/+1
| | | | | | | | | | | | base_name was deprecated in 3.9 and finally removed in 3.11.
| | * Update to Django 3.0Gravatar MarkKoz2020-03-21-120/+116
| | |
* | | Add the AllowList model and serializer.Gravatar Leon Sandøy2020-07-14-1/+41
| | | | | | | | | | | | | | | | | | | | | This is the model which we will use for items that are either blacklisted or whitelisted. https://github.com/python-discord/site/issues/305
* | | Add a mixin for adding created and updated times.Gravatar Leon Sandøy2020-07-14-1/+13
| | | | | | | | | | | | https://github.com/python-discord/site/issues/305
* | | Rename utils.py to mixins.py. More precise.Gravatar Leon Sandøy2020-07-14-16/+16
|/ / | | | | | | https://github.com/python-discord/site/issues/305
* | Catch ConnectionError when trying to get updated repository dataGravatar Dennis Pham2020-06-22-1/+1
| | | | | | This will prevent a 500 server error on our homepage when GitHub's API is down, allowing us to use the cached data we have instead.
* | Fix trailing whitespace in GitHub Action fileGravatar Joseph Banks2020-06-11-1/+1
| |
* | Create codeql-analysis.ymlGravatar Joseph Banks2020-06-11-0/+32
| |
* | Fix broken github api test dataGravatar Leon Sandøy2020-06-07-1/+1
| |
* | Replace django-crispy-bulma -> flake8-annotationsGravatar Leon Sandøy2020-06-07-1/+1
| |
* | Add Summer Code Jam image on landing page.Gravatar Leon Sandøy2020-06-07-2/+2
| |
* | Merge pull request #361 from python-discord/dependabot/pip/django-2.2.13Gravatar Joseph Banks2020-06-06-94/+91
|\ \ | | | | | | Bump django from 2.2.11 to 2.2.13
| * | Bump django from 2.2.11 to 2.2.13Gravatar dependabot[bot]2020-06-06-94/+91
|/ / | | | | | | | | | | | | Bumps [django](https://github.com/django/django) from 2.2.11 to 2.2.13. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/2.2.11...2.2.13) Signed-off-by: dependabot[bot] <[email protected]>
* | Merge pull request #357 from ↵Gravatar Joseph Banks2020-06-05-25/+89
|\ \ | | | | | | | | | | | | python-discord/joseph/change-roles-field-to-postgres-array Change roles field on user model to Postgres array
| * | Remove very generous newline in role validatorGravatar Joseph Banks2020-06-05-3/+1
| | | | | | | | | Co-authored-by: Sebastiaan Zeeff <[email protected]>
| * | Merge branch 'master' into joseph/change-roles-field-to-postgres-arrayGravatar Sebastiaan Zeeff2020-06-05-2/+2
| |\ \ | |/ / |/| |
* | | Update navbar for Code Jam 7Gravatar Dennis Pham2020-06-04-2/+2
| | | | | | | | | Changed `Most Recent: Game Jam 2020` to `Upcoming: Code Jam 7`
| * | Alter import order in user modelGravatar Joseph Banks2020-06-02-1/+1
| | |
| * | Alter signal tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-5/+5
| | |
| * | Alter staff tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-1/+1
| | |
| * | Alter account utils test to use new user roles formatGravatar Joseph Banks2020-06-02-4/+6
| | |
| * | Alter API tests to use new user roles formatGravatar Joseph Banks2020-06-02-2/+2
| | |
| * | Alter account utilities to check list length instead of queryset lengthGravatar Joseph Banks2020-06-02-1/+1
| | |
| * | Alter signals to handle OAuth2 with groups and role mappingsGravatar Joseph Banks2020-06-02-5/+5
| | |
| * | Remove primary key from user serializerGravatar Joseph Banks2020-06-02-2/+0
| | |
| * | Add validator to ensure roles passed to user model existGravatar Joseph Banks2020-06-02-0/+21
| | |