Skip to content

Commit 974afe2

Browse files
committed
remove upload button on auto generated screenshots
1 parent f109d81 commit 974afe2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

django/main/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
TEMPLATES = [
6161
{
6262
'BACKEND': 'django.template.backends.django.DjangoTemplates',
63-
'DIRS': [],
63+
'DIRS': ['/opt/app/main/templates'],
6464
'APP_DIRS': True,
6565
'OPTIONS': {
6666
'context_processors': [
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% extends "admin/base_site.html" %}
2+
3+
{% block extrastyle %}
4+
<style>
5+
#thumbnail_generated-clear_id, label[for='thumbnail_generated-clear_id'], #id_thumbnail_generated,
6+
#screenshot_generated-clear_id, label[for='screenshot_generated-clear_id'], #id_screenshot_generated {
7+
display: none;
8+
}
9+
.field-thumbnail_generated .clearable-file-input, .field-screenshot_generated .clearable-file-input {
10+
display: none;
11+
}
12+
</style>
13+
{% endblock %}

0 commit comments

Comments
 (0)