aa-structures 2.6.0__py3-none-any.whl → 2.6.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aa_structures-2.6.0.dist-info → aa_structures-2.6.2.dist-info}/METADATA +1 -1
- {aa_structures-2.6.0.dist-info → aa_structures-2.6.2.dist-info}/RECORD +37 -38
- structures/__init__.py +1 -1
- structures/admin.py +208 -206
- structures/core/notification_embeds/billing_embeds.py +11 -10
- structures/core/notification_embeds/character_embeds.py +18 -17
- structures/core/notification_embeds/main.py +6 -6
- structures/core/notification_embeds/moonmining_embeds.py +25 -26
- structures/core/notification_embeds/orbital_embeds.py +8 -7
- structures/core/notification_embeds/sov_embeds.py +26 -35
- structures/core/notification_embeds/structures_embeds.py +67 -64
- structures/core/notification_embeds/tower_embeds.py +29 -22
- structures/core/notification_embeds/war_embeds.py +33 -44
- structures/core/serializers.py +1 -1
- structures/helpers.py +7 -1
- structures/locale/de/LC_MESSAGES/django.po +1036 -185
- structures/locale/django.pot +1054 -184
- structures/locale/en/LC_MESSAGES/django.po +1054 -184
- structures/locale/es/LC_MESSAGES/django.po +1035 -184
- structures/locale/fr_FR/LC_MESSAGES/django.po +1054 -184
- structures/locale/it_IT/LC_MESSAGES/django.po +1054 -184
- structures/locale/ja/LC_MESSAGES/django.po +1054 -184
- structures/locale/ko_KR/LC_MESSAGES/django.po +1035 -184
- structures/locale/ru/LC_MESSAGES/django.mo +0 -0
- structures/locale/ru/LC_MESSAGES/django.po +1144 -199
- structures/locale/uk/LC_MESSAGES/django.po +1035 -184
- structures/locale/zh_Hans/LC_MESSAGES/django.po +1036 -185
- structures/migrations/0004_improve_localization.py +401 -0
- structures/models/notifications.py +3 -3
- structures/models/owners.py +11 -11
- structures/models/structures_1.py +16 -16
- structures/templates/structures/base.html +1 -1
- structures/tests/test_helpers.py +13 -0
- structures/views.py +1 -2
- structures/webhooks/models.py +14 -5
- structures/locale/ko/LC_MESSAGES/django.mo +0 -0
- structures/locale/ko/LC_MESSAGES/django.po +0 -2221
- {aa_structures-2.6.0.dist-info → aa_structures-2.6.2.dist-info}/LICENSE +0 -0
- {aa_structures-2.6.0.dist-info → aa_structures-2.6.2.dist-info}/WHEEL +0 -0
structures/views.py
CHANGED
@@ -15,7 +15,7 @@ from django.shortcuts import get_object_or_404, redirect, render
|
|
15
15
|
from django.urls import reverse
|
16
16
|
from django.utils import translation
|
17
17
|
from django.utils.html import format_html
|
18
|
-
from django.utils.translation import
|
18
|
+
from django.utils.translation import gettext_lazy as _
|
19
19
|
from esi.decorators import token_required
|
20
20
|
from eveuniverse.core import eveimageserver
|
21
21
|
from eveuniverse.models import EveType, EveTypeDogmaAttribute
|
@@ -101,7 +101,6 @@ def main(request):
|
|
101
101
|
form = TagsFilterForm(initial={x.name: True for x in active_tags})
|
102
102
|
|
103
103
|
context = {
|
104
|
-
"page_title": __title__,
|
105
104
|
"active_tags": active_tags,
|
106
105
|
"tags_filter_form": form,
|
107
106
|
"tags_exist": StructureTag.objects.exists(),
|
structures/webhooks/models.py
CHANGED
@@ -37,28 +37,37 @@ class WebhookBase(DiscordWebhookMixin, models.Model):
|
|
37
37
|
]
|
38
38
|
|
39
39
|
name = models.CharField(
|
40
|
-
|
40
|
+
verbose_name=_("name"),
|
41
|
+
max_length=64,
|
42
|
+
unique=True,
|
43
|
+
help_text=_("Short name to identify this webhook"),
|
41
44
|
)
|
42
45
|
url = models.CharField(
|
46
|
+
verbose_name=_("url"),
|
43
47
|
max_length=255,
|
44
48
|
unique=True,
|
45
|
-
help_text=(
|
49
|
+
help_text=_(
|
46
50
|
"URL of this webhook, e.g. "
|
47
51
|
"https://discordapp.com/api/webhooks/123456/abcdef"
|
48
52
|
),
|
49
53
|
)
|
50
54
|
notes = models.TextField(
|
55
|
+
verbose_name=_("notes"),
|
51
56
|
null=True,
|
52
57
|
default=None,
|
53
58
|
blank=True,
|
54
|
-
help_text="
|
59
|
+
help_text=_("Notes regarding this webhook"),
|
55
60
|
)
|
56
61
|
webhook_type = models.IntegerField(
|
57
|
-
|
62
|
+
verbose_name=_("webhook type"),
|
63
|
+
choices=TYPE_CHOICES,
|
64
|
+
default=TYPE_DISCORD,
|
65
|
+
help_text=_("Type of this webhook"),
|
58
66
|
)
|
59
67
|
is_active = models.BooleanField(
|
68
|
+
verbose_name=_("is active"),
|
60
69
|
default=True,
|
61
|
-
help_text="
|
70
|
+
help_text=_("Whether notifications are currently sent to this webhook"),
|
62
71
|
)
|
63
72
|
|
64
73
|
objects = WebhookBaseManager()
|
Binary file
|