mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 01:58:54 +02:00
@@ -139,7 +139,6 @@ class DynamicModelMultipleChoiceField(forms.ModelMultipleChoiceField):
|
|||||||
instance.save()
|
instance.save()
|
||||||
return instance
|
return instance
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
|
||||||
raise ValidationError(_("Error creating new instance"))
|
raise ValidationError(_("Error creating new instance"))
|
||||||
|
|
||||||
def clean(self, value):
|
def clean(self, value):
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ from apps.transactions.utils.calculations import (
|
|||||||
@require_http_methods(["GET"])
|
@require_http_methods(["GET"])
|
||||||
def net_worth(request):
|
def net_worth(request):
|
||||||
if "view_type" in request.GET:
|
if "view_type" in request.GET:
|
||||||
print(request.GET["view_type"])
|
|
||||||
view_type = request.GET["view_type"]
|
view_type = request.GET["view_type"]
|
||||||
request.session["networth_view_type"] = view_type
|
request.session["networth_view_type"] = view_type
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user