summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2015-05-26 07:52:28 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2015-05-26 07:55:03 (GMT)
commit0b9f32a9484f09ec2298297739a112addb8b18f7 (patch)
treee5a0b6b74073681825eac34eae80c2d97b7d40c2
parentdae66475bac617252105ad9fee9da808fb39726f (diff)
downloadu-auth-0b9f32a9484f09ec2298297739a112addb8b18f7.zip
u-auth-0b9f32a9484f09ec2298297739a112addb8b18f7.tar.gz
u-auth-0b9f32a9484f09ec2298297739a112addb8b18f7.tar.bz2
use federations upload dir in the context while removing federation file
-rw-r--r--uauth/organization/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uauth/organization/views.py b/uauth/organization/views.py
index 93dcda0..79a64e7 100644
--- a/uauth/organization/views.py
+++ b/uauth/organization/views.py
@@ -294,10 +294,10 @@ class FederationsAdd(UploadMixin, FederationsView):
federations_add = FederationsAdd.as_view()
-class FederationsDelete(TemplateView):
+class FederationsDelete(FederationsView):
def get(self, request, *args, **kwargs):
ctx = self.get_context_data(**kwargs)
- s = request.GET.get('federation')
+ f = request.GET.get('federation')
if os.path.exists(os.path.join(ctx['federations_dir'], f)):
try:
os.remove(os.path.join(ctx['federations_dir'], f))