Commit 4ee980de authored by Patrick's avatar Patrick

Order the staff members via drag / drop in the admin interface

parent a0f5b18b
...@@ -88,6 +88,7 @@ class RepanierSettings(AppConfig): ...@@ -88,6 +88,7 @@ class RepanierSettings(AppConfig):
currency=CURRENCY_EUR currency=CURRENCY_EUR
) )
config.save() config.save()
Staff.objects.rebuild()
# Create groups with correct rights # Create groups with correct rights
order_group = Group.objects.filter(name=ORDER_GROUP).only('id').order_by('?').first() order_group = Group.objects.filter(name=ORDER_GROUP).only('id').order_by('?').first()
if order_group is None: if order_group is None:
...@@ -217,4 +218,3 @@ class RepanierSettings(AppConfig): ...@@ -217,4 +218,3 @@ class RepanierSettings(AppConfig):
print(error_str) print(error_str)
print("##################################") print("##################################")
other = _("Other qty") other = _("Other qty")
Staff.objects.rebuild()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment