Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Feb 21, 2024
2 parents 2ae7b8c + 2c16661 commit 9f21121
Show file tree
Hide file tree
Showing 23 changed files with 697 additions and 67 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Based on this example
| django http | 8011 | DJANGO_DEV_PORT | :white_check_mark: | :x: | :x: |
| postgres | 5433 | HOST_POSTGRES_PORT | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| memcached | 11211 | MEMCACHED_PORT | :white_check_mark: | :x: | :x: |
| geodb | 5432 | HOST_POSTGRES_PORT | :white_check_mark: | :white_check_mark: | :x: |
| geodb | 5432 | HOST_GEODB_PORT | :white_check_mark: | :white_check_mark: | :x: |
| minio API | 8009 | MINIO_API_PORT | :white_check_mark: | :x: | :x: |
| minio browser | 8010 | MINIO_BROWSER_PORT | :white_check_mark: | :x: | :x: |
| smtp web | 8012 | SMTP4DEV_WEB_PORT | :white_check_mark: | :x: | :x: |
Expand Down
11 changes: 11 additions & 0 deletions docker-app/qfieldcloud/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,8 @@ class JobAdmin(QFieldCloudModelAdmin):
)
has_direct_delete_permission = False

change_form_template = "admin/job_change_form.html"

def get_queryset(self, request):
return super().get_queryset(request).defer("output", "feedback")

Expand Down Expand Up @@ -830,6 +832,11 @@ def get_urls(self):
self.admin_site.admin_view(self.export_applyjob_deltafile),
name="export_applyjob_deltafile",
),
path(
"<path:object_id>/rerun/",
self.admin_site.admin_view(self.rerun_job),
name="rerun_job",
),
*urls,
]

Expand Down Expand Up @@ -886,6 +893,10 @@ def export_applyjob_deltafile(
},
)

def rerun_job(self, request, object_id):
Job.objects.filter(pk=object_id).update(status="pending")
return HttpResponseRedirect("..")


class ApplyJobDeltaInline(admin.TabularInline):
model = ApplyJobDelta
Expand Down
11 changes: 11 additions & 0 deletions docker-app/qfieldcloud/core/staticfiles/css/admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.login-logo img {
width: 100%;
}

.object-tools{
margin-bottom: 1rem;
}

#jazzy-logo img{
box-shadow: none!important;
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 104 additions & 0 deletions docker-app/qfieldcloud/core/staticfiles/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docker-app/qfieldcloud/core/staticfiles/logo_notext.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9f21121

Please sign in to comment.