mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Improve launderette, need to finish the click view
This commit is contained in:
@ -44,6 +44,10 @@ class Command(BaseCommand):
|
||||
bar_club = Club(name=settings.SITH_BAR_MANAGER['name'], unix_name=settings.SITH_BAR_MANAGER['unix_name'],
|
||||
address=settings.SITH_BAR_MANAGER['address'])
|
||||
bar_club.save()
|
||||
launderette_club = Club(name=settings.SITH_LAUNDERETTE_MANAGER['name'],
|
||||
unix_name=settings.SITH_LAUNDERETTE_MANAGER['unix_name'],
|
||||
address=settings.SITH_LAUNDERETTE_MANAGER['address'])
|
||||
launderette_club.save()
|
||||
for b in settings.SITH_COUNTER_BARS:
|
||||
g = Group(name=b[1]+" admin")
|
||||
g.save()
|
||||
@ -63,6 +67,12 @@ class Command(BaseCommand):
|
||||
Welcome to the wiki page!
|
||||
""").save()
|
||||
|
||||
p = Page(name="launderette")
|
||||
p.set_lock(root)
|
||||
p.save()
|
||||
p.set_lock(root)
|
||||
PageRev(page=p, title="", author=root, content="").save()
|
||||
|
||||
# Here we add a lot of test datas, that are not necessary for the Sith, but that provide a basic development environment
|
||||
if not options['prod']:
|
||||
# Adding user Skia
|
||||
|
@ -86,7 +86,6 @@ class PageCreateView(CanEditPropMixin, CreateView):
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(PageCreateView, self).get_context_data(**kwargs)
|
||||
print(context)
|
||||
context['new_page'] = True
|
||||
return context
|
||||
|
||||
|
Reference in New Issue
Block a user