Apply comments / recommendations of pullrequest
This commit is contained in:
parent
c1f8a18c8f
commit
47ff1192b4
|
|
@ -47,5 +47,4 @@ server/media/
|
|||
# test reports
|
||||
client/cypress/test-reports/
|
||||
server/test-reports/
|
||||
*.dump
|
||||
.direnv
|
||||
|
|
|
|||
|
|
@ -29,14 +29,14 @@ To download a backup use
|
|||
### Load a backup locally
|
||||
|
||||
Be careful since you download user data as well. Therefore use preprod app by
|
||||
default, it is anonimized. And more or less in sync with the prod app.
|
||||
default, it is anonymized.
|
||||
|
||||
Downlaoad backup
|
||||
####Download backup
|
||||
|
||||
`heroku pg:backups:download --app <appname>`
|
||||
|
||||
|
||||
Load dump file into your db
|
||||
####Load dump file into your db
|
||||
|
||||
To download a backup
|
||||
`pg_restore --verbose --clean --no-acl --no-owner -h localhost -U skillbox -d skillbox latest.dump`
|
||||
|
|
|
|||
|
|
@ -40,16 +40,6 @@ class Topic(StrictHierarchyPage):
|
|||
parent_page_types = ['books.Book']
|
||||
subpage_types = ['books.Module']
|
||||
|
||||
# TODO: THis orders the queryset for the modules but not the visual ordering in cms
|
||||
# def get_children(self):
|
||||
# qs = super().get_children()
|
||||
# qs = qs.order_by('module__meta_title')
|
||||
# print('')
|
||||
# for p in qs:
|
||||
# if hasattr(p, 'module'):
|
||||
# print(f"{p.module.meta_title} {p.title}")
|
||||
# return qs
|
||||
|
||||
def get_admin_display_title(self):
|
||||
return f"" \
|
||||
f"{self.get_verbose_name()}- {self.title}"
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
{% extends "modeladmin/index.html" %}
|
||||
|
||||
{# The title field for a page in the page listing, when in 'explore' mode #}
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<div>Saletti</div>
|
||||
{# {{ block.super }}#}
|
||||
{# <div class="object">#}
|
||||
{# <img src="{% get_media_prefix %}{{ instance.image }}"/>#}
|
||||
{# </div>#}
|
||||
{% endblock %}
|
||||
|
|
@ -1,3 +1,6 @@
|
|||
{# This template is overwritten to create a custom cms ui for the model "chapter" to improve navigation experience.
|
||||
See MS-538#}
|
||||
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load wagtailadmin_tags %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue