mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			app_downlo
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					74aee64161 | ||
| 
						 | 
					206a967827 | ||
| 
						 | 
					69aedccbae | 
@@ -152,9 +152,11 @@ class ActivityDetailView(ProtectQuerysetMixin, LoginRequiredMixin, MultiTableMix
 | 
				
			|||||||
    def get_tables_data(self):
 | 
					    def get_tables_data(self):
 | 
				
			||||||
        return [
 | 
					        return [
 | 
				
			||||||
            Guest.objects.filter(activity=self.object)
 | 
					            Guest.objects.filter(activity=self.object)
 | 
				
			||||||
                         .filter(PermissionBackend.filter_queryset(self.request, Guest, "view")),
 | 
					                         .filter(PermissionBackend.filter_queryset(self.request, Guest, "view"))
 | 
				
			||||||
 | 
					                         .distinct(),
 | 
				
			||||||
            self.object.opener.filter(activity=self.object)
 | 
					            self.object.opener.filter(activity=self.object)
 | 
				
			||||||
                              .filter(PermissionBackend.filter_queryset(self.request, Opener, "view")),
 | 
					                              .filter(PermissionBackend.filter_queryset(self.request, Opener, "view"))
 | 
				
			||||||
 | 
					                              .distinct(),
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def render_to_response(self, context, **response_kwargs):
 | 
					    def render_to_response(self, context, **response_kwargs):
 | 
				
			||||||
@@ -309,7 +311,7 @@ class ActivityInviteView(ProtectQuerysetMixin, ProtectedCreateView):
 | 
				
			|||||||
    @transaction.atomic
 | 
					    @transaction.atomic
 | 
				
			||||||
    def form_valid(self, form):
 | 
					    def form_valid(self, form):
 | 
				
			||||||
        form.instance.activity = Activity.objects\
 | 
					        form.instance.activity = Activity.objects\
 | 
				
			||||||
            .filter(PermissionBackend.filter_queryset(self.request, Activity, "view")).get(pk=self.kwargs["pk"])
 | 
					            .filter(PermissionBackend.filter_queryset(self.request, Activity, "view")).distinct().get(pk=self.kwargs["pk"])
 | 
				
			||||||
        return super().form_valid(form)
 | 
					        return super().form_valid(form)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get_success_url(self, **kwargs):
 | 
					    def get_success_url(self, **kwargs):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -927,7 +927,7 @@
 | 
				
			|||||||
                "note",
 | 
					                "note",
 | 
				
			||||||
                "transactiontemplate"
 | 
					                "transactiontemplate"
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            "query": "{\"destination\": [\"club\", \"note\"]}",
 | 
					            "query": "[\"AND\", {\"destination\": [\"club\", \"note\"]}, {\"category__name\": \"Clubs\"}]",
 | 
				
			||||||
            "type": "view",
 | 
					            "type": "view",
 | 
				
			||||||
            "mask": 2,
 | 
					            "mask": 2,
 | 
				
			||||||
            "field": "",
 | 
					            "field": "",
 | 
				
			||||||
@@ -943,7 +943,7 @@
 | 
				
			|||||||
                "note",
 | 
					                "note",
 | 
				
			||||||
                "transactiontemplate"
 | 
					                "transactiontemplate"
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            "query": "{\"destination\": [\"club\", \"note\"]}",
 | 
					            "query": "[\"AND\", {\"destination\": [\"club\", \"note\"]}, {\"category__name\": \"Clubs\"}]", 
 | 
				
			||||||
            "type": "add",
 | 
					            "type": "add",
 | 
				
			||||||
            "mask": 3,
 | 
					            "mask": 3,
 | 
				
			||||||
            "field": "",
 | 
					            "field": "",
 | 
				
			||||||
@@ -959,7 +959,7 @@
 | 
				
			|||||||
                "note",
 | 
					                "note",
 | 
				
			||||||
                "transactiontemplate"
 | 
					                "transactiontemplate"
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            "query": "{\"destination\": [\"club\", \"note\"]}",
 | 
					            "query": "[\"AND\", {\"destination\": [\"club\", \"note\"]}, {\"category__name\": \"Clubs\"}]",
 | 
				
			||||||
            "type": "change",
 | 
					            "type": "change",
 | 
				
			||||||
            "mask": 3,
 | 
					            "mask": 3,
 | 
				
			||||||
            "field": "",
 | 
					            "field": "",
 | 
				
			||||||
@@ -3484,7 +3484,23 @@
 | 
				
			|||||||
	    "mask": 1,
 | 
						    "mask": 1,
 | 
				
			||||||
	    "permanent": false,
 | 
						    "permanent": false,
 | 
				
			||||||
	    "description": "Voir la bouffe servie"
 | 
						    "description": "Voir la bouffe servie"
 | 
				
			||||||
	}
 | 
						    }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "model": "permission.permission",
 | 
				
			||||||
 | 
					        "pk": 223,
 | 
				
			||||||
 | 
					        "fields": {
 | 
				
			||||||
 | 
					            "model": [
 | 
				
			||||||
 | 
					                "note",
 | 
				
			||||||
 | 
					                "templatecategory"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "query": "{\"name\": \"Clubs\"}",
 | 
				
			||||||
 | 
					            "type": "view",
 | 
				
			||||||
 | 
					            "mask": 2,
 | 
				
			||||||
 | 
					            "field": "",
 | 
				
			||||||
 | 
					            "permanent": false,
 | 
				
			||||||
 | 
					            "description": "Voir la catégorie de bouton Clubs"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "model": "permission.permission",
 | 
					        "model": "permission.permission",
 | 
				
			||||||
@@ -4896,7 +4912,6 @@
 | 
				
			|||||||
                19,
 | 
					                19,
 | 
				
			||||||
                20,
 | 
					                20,
 | 
				
			||||||
                21,
 | 
					                21,
 | 
				
			||||||
                27,
 | 
					 | 
				
			||||||
                59,
 | 
					                59,
 | 
				
			||||||
                60,
 | 
					                60,
 | 
				
			||||||
                61,
 | 
					                61,
 | 
				
			||||||
@@ -4907,6 +4922,7 @@
 | 
				
			|||||||
                182,
 | 
					                182,
 | 
				
			||||||
                184,
 | 
					                184,
 | 
				
			||||||
                185,
 | 
					                185,
 | 
				
			||||||
 | 
					                223,
 | 
				
			||||||
                239,
 | 
					                239,
 | 
				
			||||||
                240,
 | 
					                240,
 | 
				
			||||||
                241
 | 
					                241
 | 
				
			||||||
@@ -5271,6 +5287,12 @@
 | 
				
			|||||||
                176,
 | 
					                176,
 | 
				
			||||||
                177,
 | 
					                177,
 | 
				
			||||||
                197,
 | 
					                197,
 | 
				
			||||||
 | 
					                211,
 | 
				
			||||||
 | 
					                212,
 | 
				
			||||||
 | 
					                213,
 | 
				
			||||||
 | 
					                214,
 | 
				
			||||||
 | 
					                215,
 | 
				
			||||||
 | 
					                216,
 | 
				
			||||||
                311,
 | 
					                311,
 | 
				
			||||||
                319
 | 
					                319
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user