| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
|
| |
Bumps the current django version to 3.2 For the most part, there are no
major changes here. The app configuration names were incorrect, and the
new version no longer ignores that, so those were updated. The new
version also requires explicitly defining the field type for primary
keys if they are not defined on the model.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
|
|
|
|
|
| |
Int he latest version of discord.py Embed colours could be sent to site as hex strings, if set using a discord.Color, rather tha an int.
Closes #715 Closes SITE-25
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In more detail:
- Use Django URL namespaces (e.g. `api:bot:infractions`) instead of
`django_hosts` host argument.
- Update the hosts file setup documentation to remove subdomain entries.
- Update the hosts file setup documentation to mention that the entry of
`pythondiscord.local` is not required and mainly for convenience.
- Rename the `APISubdomainTestCase` to the more fitting
`AuthenticatedAPITestCase`, as authentication is all that is left that the
class is doing.
- Drop dependency to `django_hosts`.
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
# Conflicts:
# pydis_site/apps/api/admin.py
|
| | |
|
| |
| |
| |
| |
| |
| | |
This should completely remove avatar_hash from the site - both in our
tests, in the model itself, and from the database (as a result of the
migration).
|
| |\ |
|
| | |\
| | | |
| | | |
| | | | |
https://github.com/python-discord/site into bot#549-show-attachments-staff
|
| | | |\ |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | |/ / |
|
| | |/ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/ |
|
|
|
|
| |
This also enforces unique values for both attributes on the RoleMapping model. Supporting configurations where this isn't the case would introduce quite a lot of added complexity.
|
|
|
|
| |
Turns out, setting this *does* move the model to a different category under the admin - but it also reparents it to the referenced app, so the migrations are created under that app instead. Nasty.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Tests include:
- Properly escaping html;
- Correct messages have been passed to templates;
- Embeds are both rendered by the template.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Adding support for embeds to both the template and the css;
- Adding Discord fonts to create a Discord-realistic rendering;
- Adding Discord color int to html hex filter for use in templates;
- Removing unnecessary int -> hex property from role model (see previous point);
- Adding support to compute timestamp from snowflake int in the message model;
- Forcing the order of deleted messages list view to snowflake `id` to guarantee chronological order.
|
| |
|
|
|