Lepsi Delani Orgu #35

Merged
zelvuska merged 6 commits from lepsi-delani-orgu into master 2023-10-30 22:21:13 +01:00
Owner
No description provided.
ledoian added 1 commit 2023-06-21 14:46:31 +02:00
ledoian reviewed 2023-06-21 14:53:43 +02:00
@ -25,3 +26,3 @@
if m.Organizator.objects.filter(osoba=o).exists(): continue
user = o.user
print(user)
user.groups.add(org_group)
Author
Owner

Tady to taky může spadnout. Teda, asi je správně, že to spadne, ale mělo by to padat řízeně. (Je potřeba nastudovat, jak z těchto funkcí vracet použitelné chyby.)

Tady to taky může spadnout. Teda, asi je správně, že to spadne, ale mělo by to padat řízeně. (Je potřeba nastudovat, jak z těchto funkcí vracet použitelné chyby.)
Author
Owner

Už by to mělo vracet fancy hlášky, snad.

Už by to mělo vracet fancy hlášky, snad.
ledoian reviewed 2023-06-21 14:53:54 +02:00
@ -22,12 +23,12 @@ class OsobaAdmin(admin.ModelAdmin):
org_group = Group.objects.get(name='org')
print(queryset)
Author
Owner

Tenhle print tu být taky nemusí…

Tenhle print tu být taky nemusí…
ledoian marked this conversation as resolved
ledoian reviewed 2023-06-21 14:54:27 +02:00
@ -30,3 +31,3 @@
org = m.Organizator.objects.create(osoba=o)
org = m.Organizator.objects.create(osoba=o, organizuje_od=datetime.now())
org.save()
udelej_orgem.short_description = "Udělej vybraných osob organizátory"
Author
Owner

s/j v/j z v/

s/j v/j z v/
ledoian marked this conversation as resolved
Owner

Funguje.

Funguje.
ledoian added 2 commits 2023-06-21 15:41:56 +02:00
ledoian added 1 commit 2023-06-21 15:51:23 +02:00
ledoian added 1 commit 2023-10-09 22:43:50 +02:00
ledoian added 1 commit 2023-10-30 22:20:02 +01:00
zelvuska merged commit cda00bbc4c into master 2023-10-30 22:21:13 +01:00
zelvuska deleted branch lepsi-delani-orgu 2023-10-30 22:21:14 +01:00
zelvuska deleted branch lepsi-delani-orgu 2024-07-06 19:30:05 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mam/mamweb#35
No description provided.