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.
Files changed (39) hide show
  1. {aa_structures-2.6.0.dist-info → aa_structures-2.6.2.dist-info}/METADATA +1 -1
  2. {aa_structures-2.6.0.dist-info → aa_structures-2.6.2.dist-info}/RECORD +37 -38
  3. structures/__init__.py +1 -1
  4. structures/admin.py +208 -206
  5. structures/core/notification_embeds/billing_embeds.py +11 -10
  6. structures/core/notification_embeds/character_embeds.py +18 -17
  7. structures/core/notification_embeds/main.py +6 -6
  8. structures/core/notification_embeds/moonmining_embeds.py +25 -26
  9. structures/core/notification_embeds/orbital_embeds.py +8 -7
  10. structures/core/notification_embeds/sov_embeds.py +26 -35
  11. structures/core/notification_embeds/structures_embeds.py +67 -64
  12. structures/core/notification_embeds/tower_embeds.py +29 -22
  13. structures/core/notification_embeds/war_embeds.py +33 -44
  14. structures/core/serializers.py +1 -1
  15. structures/helpers.py +7 -1
  16. structures/locale/de/LC_MESSAGES/django.po +1036 -185
  17. structures/locale/django.pot +1054 -184
  18. structures/locale/en/LC_MESSAGES/django.po +1054 -184
  19. structures/locale/es/LC_MESSAGES/django.po +1035 -184
  20. structures/locale/fr_FR/LC_MESSAGES/django.po +1054 -184
  21. structures/locale/it_IT/LC_MESSAGES/django.po +1054 -184
  22. structures/locale/ja/LC_MESSAGES/django.po +1054 -184
  23. structures/locale/ko_KR/LC_MESSAGES/django.po +1035 -184
  24. structures/locale/ru/LC_MESSAGES/django.mo +0 -0
  25. structures/locale/ru/LC_MESSAGES/django.po +1144 -199
  26. structures/locale/uk/LC_MESSAGES/django.po +1035 -184
  27. structures/locale/zh_Hans/LC_MESSAGES/django.po +1036 -185
  28. structures/migrations/0004_improve_localization.py +401 -0
  29. structures/models/notifications.py +3 -3
  30. structures/models/owners.py +11 -11
  31. structures/models/structures_1.py +16 -16
  32. structures/templates/structures/base.html +1 -1
  33. structures/tests/test_helpers.py +13 -0
  34. structures/views.py +1 -2
  35. structures/webhooks/models.py +14 -5
  36. structures/locale/ko/LC_MESSAGES/django.mo +0 -0
  37. structures/locale/ko/LC_MESSAGES/django.po +0 -2221
  38. {aa_structures-2.6.0.dist-info → aa_structures-2.6.2.dist-info}/LICENSE +0 -0
  39. {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 gettext as _
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(),
@@ -37,28 +37,37 @@ class WebhookBase(DiscordWebhookMixin, models.Model):
37
37
  ]
38
38
 
39
39
  name = models.CharField(
40
- max_length=64, unique=True, help_text="short name to identify this webhook"
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="you can add notes about this webhook here if you want",
59
+ help_text=_("Notes regarding this webhook"),
55
60
  )
56
61
  webhook_type = models.IntegerField(
57
- choices=TYPE_CHOICES, default=TYPE_DISCORD, help_text="type of this webhook"
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="whether notifications are currently sent to this webhook",
70
+ help_text=_("Whether notifications are currently sent to this webhook"),
62
71
  )
63
72
 
64
73
  objects = WebhookBaseManager()
Binary file