Skip to content

Commit

Permalink
Merged master into release
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Feb 6, 2024
2 parents 40f8bf1 + 56ad348 commit 2ae7b8c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions docker-app/qfieldcloud/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,22 @@ class ProjectFilesWidget(widgets.Input):
template_name = "admin/project_files_widget.html"


class OwnerTypeFilter(admin.SimpleListFilter):
title = _("owner type")
parameter_name = "owner_type"

def lookups(self, request, model_admin):
return [(User.Type.PERSON, "Person"), (User.Type.ORGANIZATION, "Organization")]

def queryset(self, request, queryset):
value = self.value()

if value is None:
return queryset

return queryset.filter(owner__type=value)


class ProjectForm(ModelForm):
project_files = fields.CharField(
disabled=True, required=False, widget=ProjectFilesWidget
Expand All @@ -594,6 +610,7 @@ class ProjectAdmin(QFieldCloudModelAdmin):
"is_public",
"created_at",
"updated_at",
OwnerTypeFilter,
)
fields = (
"id",
Expand Down
2 changes: 1 addition & 1 deletion docker-app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cffi==1.15.1
charset-normalizer==2.0.9
coreapi==2.3.3
coreschema==0.0.4
cryptography==41.0.6
cryptography==42.0.0
defusedxml==0.7.1
Deprecated==1.2.13
Django==3.2.23
Expand Down
2 changes: 1 addition & 1 deletion docker-app/worker_wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _run_docker(
"QT_QPA_PLATFORM": "offscreen",
},
volumes=volumes,
# TODO keep the logs somewhere or even better -> pipe them to redis and store them there
# TODO stream the logs to something like redis, so they can be streamed back in project jobs page to the user live
# auto_remove=True,
network=settings.QFIELDCLOUD_DEFAULT_NETWORK,
detach=True,
Expand Down
2 changes: 1 addition & 1 deletion docker-qgis/requirements_libqfieldsync.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
libqfieldsync @ git+https://github.com/opengisch/libqfieldsync@8ee725ca401b5d083edd8feed733803b8709d496
libqfieldsync @ git+https://github.com/opengisch/libqfieldsync@e3647e9b0fcbaf74cbb4c3f72bc8f34d99cb44e0

0 comments on commit 2ae7b8c

Please sign in to comment.