Skip to content

Commit

Permalink
Completely remove the ngo.other_emails field
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Jan 14, 2025
1 parent 97fa0e1 commit 2bf88b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion backend/donations/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def get(self, request, ngo_url, *args, **kwargs):
"ngo_upload_url": reverse("api-ngo-upload-url"),
"counties": settings.FORM_COUNTIES_NATIONAL,
"ngo": ngo,
"other_emails": (", ".join(str(x) for x in ngo.other_emails) if ngo.other_emails else ""),
}

try:
Expand Down
5 changes: 2 additions & 3 deletions backend/donations/views/my_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
from django.urls import reverse, reverse_lazy
from django.utils import timezone
from django.utils.decorators import method_decorator
from django.utils.translation import gettext_lazy as _, ngettext_lazy
from django.utils.translation import gettext_lazy as _
from django.utils.translation import ngettext_lazy
from django_q.tasks import async_task

from redirectioneaza.common.cache import cache_decorator
Expand Down Expand Up @@ -327,8 +328,6 @@ def post(self, request, *args, **kwargs):
if errors:
return render(request, self.template_name, context)

ngo.other_emails = ""

if request.user.has_perm("users.can_view_old_dashboard"):
ngo.is_verified = post.get("ong-verificat") == "on"
ngo.is_active = post.get("ong-activ") == "on"
Expand Down

0 comments on commit 2bf88b2

Please sign in to comment.