aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py (unfollow)
Commit message (Collapse)AuthorLines
2020-01-13Update migration dependency to the latest mergedGravatar Matteo Bertucci-1/+1
2020-01-06Adding iframe attributes to attribute whitelistGravatar Sebastiaan Zeeff-0/+1
To properly show YouTube-embeds, we need to allow some attributes on `iframe` tags. I've added all attributes that are normal for such an embed, including `width` and `height` (which we may not need if we want to make the frame resize to its parent).
2020-01-06Adding iframes to HTML whitelistGravatar Leon Sandøy-1/+1
This will allow us to put stuff like YouTube embeds in wiki articles... hopefully. I didn't test it.
2020-01-05Bump django from 2.2.6 to 2.2.8Gravatar dependabot[bot]-90/+90
Bumps [django](https://github.com/django/django) from 2.2.6 to 2.2.8. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/2.2.6...2.2.8) Signed-off-by: dependabot[bot] <[email protected]>
2019-12-26Use a static discord shield on the readme.Gravatar scragly-1/+1
2019-12-23Add Code Jam 6 banner to the homepageGravatar Jeremiah Boby-4/+4
2019-12-17Pad the discriminator with zeroes in profile.Gravatar Leon Sandøy-1/+1
previously, lemon#0001 would display as just lemon#1. This commit fixes this. All credit goes to @gdude2002
2019-12-14Rename route /bot/offensive-message to /bot/offensive-messagesGravatar Akarys42-4/+4
2019-12-09Add 1em bottom margin to wiki markdown codeblocks.Gravatar scragly-0/+5
Any text following the end of a codeblock in the wiki would very closely hug the codeblock, impacting readability and giving poor structure to page content. This adds in an appropriate margin to the bottom of codeblocks to give a fair buffer that matches typical paragraph spacing.
2019-11-20Test for the attachment image to be in the staff logGravatar Akarys42-0/+15
2019-11-20Correct the discord tos link in rules endpoint.Gravatar scragly-1/+1
2019-11-16Use direct database test intead of relying on GETGravatar Akarys42-3/+3
2019-11-16Write list test for the offensive message modelGravatar Akarys42-0/+39
2019-11-15Update migration historyGravatar Matteo Bertucci-1/+1
2019-11-15Delete useless migration fileGravatar Matteo Bertucci-19/+0
2019-11-15Allow blank attachment fieldGravatar Matteo Bertucci-1/+1
2019-11-12Make use of subtestsGravatar Akarys42-20/+20
Co-authored-by: Sebastiaan Zeeff <[email protected]>
2019-11-12Add the `--debug` flag to the start commandGravatar Matteo Bertucci-1/+1
2019-11-11Add pipenv run start commandGravatar Akarys42-0/+1
2019-11-11Change setUpTestData to use aware datetimeGravatar Akarys42-2/+2
This remove a warning during test run
2019-11-11Add deletion testsGravatar Akarys42-0/+24
2019-11-11Add tests to make sure the view return 405 for PATCH and PUT requestsGravatar Akarys42-0/+22
2019-11-10Make sure the API return the appropriate response.Gravatar Akarys42-0/+9
2019-11-07Merge master migration filesGravatar Akarys42-2/+2
2019-11-07Block PATCH and PUT methodsGravatar Akarys42-3/+2
2019-11-07Fix copy pasting mistakeGravatar Akarys42-1/+1
2019-11-07Squash down migration filesGravatar Akarys42-36/+3
2019-11-03Resolve migration merge conflictsGravatar Sebastiaan Zeeff-8/+8
Since other pull requests were merged that also included migrations for the API app, this PR needed to be updated to avoid conflicts in the migration history. In addition, the test files contained names of specific migration files that needed to be updated to the correct names after the merge resolution.
2019-10-31Make newlines visible in deleted messagesGravatar Sebastiaan Zeeff-10/+53
https://github.com/python-discord/site/issues/302 This commit makes newlines in deleted messages visible in the deleted messages front-end and makes sure they are not stripped during the conversion to HTML. To represent newlines, I've chosen a commonly used symbol: `↵`. In addition, I've kaizened the colour filter that translates integer representations of colours to their RGB hex-value. The Discord dark theme shows black colours (int: 0; hex: #000000) as white instead, to make reading them against the dark background easier. This commit makes sure our front-end displays the same behavior. This closes #302
2019-10-31Allow empty attachment fieldGravatar Matteo Bertucci-0/+20
2019-10-28Write tests for message.attachmentsGravatar Akarys42-3/+8
2019-10-28Show attachments in staff logsGravatar Akarys42-0/+5