aboutsummaryrefslogtreecommitdiffstats
path: root/api/models.py (follow)
Commit message (Collapse)AuthorAgeLines
* Use proper default for infraction insertion date.Gravatar Johannes Christ2019-01-09-2/+2
|
* Allow custom `inserted_at` infraction field for now.Gravatar Johannes Christ2019-01-07-1/+2
|
* Add the `note` infraction type.Gravatar Johannes Christ2019-01-05-1/+2
|
* Fixed merge conflictsGravatar ImportErr2018-12-08-1/+62
|\
| * Django - Add Infractions API (#149)Gravatar Mark2018-11-29-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Added regex validator to special snake name. (#153)Gravatar Hasan2018-11-29-1/+2
| |
* | Ordered models alphabeticallyGravatar ImportErr2018-12-01-55/+55
|/
* Add a regex validator to snakename fields. (#151)Gravatar Hasan2018-11-25-2/+4
|
* Django - Add Support for Storing Users Not in Guild (#150)Gravatar Mark2018-11-19-2/+6
| | | | | | | | | | | | * 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
* Added help textGravatar Hasan-Ahmad2018-10-29-1/+2
|
* Changed image urlfield to ArrayFieldGravatar Hasan-Ahmad2018-10-27-1/+3
|
* code presentasion and help text on modelsGravatar Hasan-Ahmad2018-10-25-4/+8
|
* Added image fieldGravatar Hasan-Ahmad2018-10-23-0/+1
|
* Added special snakes apiGravatar Hasan-Ahmad2018-10-22-0/+12
|
* ficksed gramar and kept imports 2 per lineGravatar Hasan-Ahmad2018-10-20-1/+1
|
* Added snake idioms apiGravatar Hasan-Ahmad2018-10-19-0/+13
|
* Fixed import order and lintingGravatar Hasan-Ahmad2018-10-15-1/+1
|
* fixed orderingGravatar Hasan-Ahmad2018-10-13-13/+13
|
* Added snake facts apiGravatar Hasan-Ahmad2018-10-11-0/+13
|
* Use tag title as string representation.Gravatar Johannes Christ2018-09-23-0/+3
|
* Add embed validation.Gravatar Johannes Christ2018-09-23-1/+4
|
* Add the `Tag` model.Gravatar Johannes Christ2018-09-22-0/+17
|
* Add `__str__` to all API models.Gravatar Johannes Christ2018-09-21-0/+15
|
* Add `__repr__` to all models.Gravatar Johannes Christ2018-09-21-5/+26
|
* Add help texts on all API models.Gravatar Johannes Christ2018-09-21-6/+25
|
* Set up GitLab CI properly.Gravatar Johannes Christ2018-09-04-2/+2
|
* Add the `Member` model.Gravatar Johannes Christ2018-09-01-2/+42
|
* Add the `Role` model.Gravatar Johannes Christ2018-09-01-1/+42
|
* Add the `OffTopicChannelName` model.Gravatar Johannes Christ2018-09-01-0/+9
|
* Add the `DocumentationLink` model.Gravatar Johannes Christ2018-08-16-0/+10
|
* Add the `SnakeName` model.Gravatar Johannes Christ2018-08-15-1/+4
|
* Add stub applications `api` and `wiki`.Gravatar Johannes Christ2018-08-13-0/+3