mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-31 06:39:31 +00:00
4 files changed
+22
-14
No files matched your search
@@ -864,7 +864,11 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
subscribers = Group.objects.create(name="Cotisants")
|
subscribers = Group.objects.create(name="Cotisants")
|
||||||
subscribers.permissions.add(
|
subscribers.permissions.add(
|
||||||
*list(perms.filter(codename__in=["add_news", "add_uecomment"]))
|
*list(
|
||||||
|
perms.filter(
|
||||||
|
codename__in=["add_news", "add_uecomment", "add_self_timetable"]
|
||||||
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
old_subscribers = Group.objects.create(name="Anciens cotisants")
|
old_subscribers = Group.objects.create(name="Anciens cotisants")
|
||||||
old_subscribers.permissions.add(
|
old_subscribers.permissions.add(
|
||||||
@@ -893,18 +897,16 @@ class Command(BaseCommand):
|
|||||||
accounting_admin.permissions.add(
|
accounting_admin.permissions.add(
|
||||||
*list(
|
*list(
|
||||||
perms.filter(
|
perms.filter(
|
||||||
Q(
|
codename__in=[
|
||||||
codename__in=[
|
"view_customer",
|
||||||
"view_customer",
|
"view_product",
|
||||||
"view_product",
|
"change_product",
|
||||||
"change_product",
|
"add_product",
|
||||||
"add_product",
|
"view_producttype",
|
||||||
"view_producttype",
|
"change_producttype",
|
||||||
"change_producttype",
|
"add_producttype",
|
||||||
"add_producttype",
|
"delete_selling",
|
||||||
"delete_selling",
|
]
|
||||||
]
|
|
||||||
)
|
|
||||||
).values_list("pk", flat=True)
|
).values_list("pk", flat=True)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ form {
|
|||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row > label {
|
.row > label {
|
||||||
|
|||||||
@@ -118,6 +118,12 @@ body {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
display: block;
|
||||||
|
margin: .5em auto;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
/*--------------------------------HEADER-------------------------------*/
|
/*--------------------------------HEADER-------------------------------*/
|
||||||
|
|
||||||
#info_boxes {
|
#info_boxes {
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
background-color: white;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
.alert {
|
.alert {
|
||||||
|
|||||||
Reference in new issue
Block a user