aboutsummaryrefslogtreecommitdiffstats
path: root/api/admin.py (follow)
Commit message (Collapse)AuthorAgeLines
* [#176] Redo project layoutGravatar Gareth Coles2019-04-05-26/+0
|
* Allow retrieval of individual bot settings.Gravatar Johannes Christ2019-02-18-6/+8
|
* Merge branch 'django' into django+add-logs-apiGravatar Johannes Christ2019-01-20-1/+2
|\
| * Django - Add Infractions API (#149)Gravatar Mark2018-11-29-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add Infraction model and serialiser The model in not finalised. * fix mix up of serialiser fields * remove explicit id field and add foreign keys * remove unused import * disallow null for user * add view set and route * fix model and create migration * fix typo choice => choices * specify names for reverse accessors for User FKs * add django-filter * add filters to view set * add string dunder method to model * add list/retrieve tests * make reason nullable * add creation tests * remove support for PUT and DELETE * add support for PATCH * assert timestamps using strings rather than datetimes This is done to keep 3.6 support; datetime.fromisoformat() is 3.7+ * assert inserted_at * add unauthenticated tests * add bad value tests for list filters and retrieve * remove prefetch cache invalidation * make __str__ more descriptive * add field validation & remove note type * add tests for field validation * fix coverage for Infraction string dunder test * fix coverage (for sure this time) * return 400 for partial updates with frozen fields * add expanded serialiser and endpoints * test expanded endpoints * remove extra retrieve call * remove unnecessary try-finally blocks * remove extra blank line * document endpoints (except expanded) * document expanded routes * fix wrong routes in docstring (/infraction -> /infractions) * make merge migration
* | Merge branch 'django' into django+add-logs-api.Gravatar Johannes Christ2018-11-25-3/+3
|\|
| * Django - Add Support for Storing Users Not in Guild (#150)Gravatar Mark2018-11-19-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * rename Member to User * add boolean field to distinguish users in our server * mark roles as not required * fix import order lint errors * fix order of model registration
* | Add `MessageDeletionContext` and `DeletedMessage` to the admin.Gravatar Johannes Christ2018-11-18-1/+4
|/
* Fixed lintingGravatar Hasan-Ahmad2018-10-25-3/+3
|
* Added special snakes apiGravatar Hasan-Ahmad2018-10-22-3/+5
|
* Fixed linting issues, added SnakeIdioms to test_models.pyGravatar Hasan-Ahmad2018-10-20-1/+1
|
* Added snake idioms apiGravatar Hasan-Ahmad2018-10-19-2/+3
|
* Fixed import order and lintingGravatar Hasan-Ahmad2018-10-15-1/+1
|
* fixed orderingGravatar Hasan-Ahmad2018-10-13-2/+3
|
* Added snake facts apiGravatar Hasan-Ahmad2018-10-11-1/+2
|
* Add embed validation.Gravatar Johannes Christ2018-09-23-1/+2
|
* Add the `admin` subdomain with the Django Admin.Gravatar Johannes Christ2018-09-08-2/+13
|
* Proeprly set up lint and test stages.Gravatar Johannes Christ2018-08-30-1/+1
|
* Add stub applications `api` and `wiki`.Gravatar Johannes Christ2018-08-13-0/+3