Skip to content

Commit ebc6720

Browse files
mkovaluaantkrytJohnetordoffihorsokhanexoftVlad0n20
committed
[ENG-8740] Ability to delete a file from a registration via admin (CenterForOpenScience#11285)
* [ENG-8514] Remove CSRF protection from reset password api v2 POST (CenterForOpenScience#11246) * remove csrf protection from reset password endpoint * update test * add background color prop to Brand (CenterForOpenScience#11254) * fix flaky test_serialized_metadata * fix throttle test * reset throttle cache * don't ignore components when create a view-only link * fixed updating subscribe_osf_general_email subscription * [ENG-7277] Update doc to include version as relationship (CenterForOpenScience#11262) * added tests * [ENG-8691] Wrong server on reset password email (CenterForOpenScience#11271) * use same logic for admin and web password reset * fix tests * enable filtering for linked-nodes endpoint (CenterForOpenScience#11273) * remove deleted users from institutional dashboard (CenterForOpenScience#11261) * fixed tests * [ENG-7803] Update text on VOL modal for registration (CenterForOpenScience#11279) * add a file removal feature for a node (registration) using admin panel * delete file only for archived registration when it is not possible from user side to avoid inconsistency * remove file from scheme response blocks * delete file from registration and metadata and keep it for original project --------- Co-authored-by: antkryt <ant.krytskyi@gmail.com> Co-authored-by: John Tordoff <Johnetordoff@users.noreply.github.com> Co-authored-by: Ihor Sokhan <isokhan@exoft.net> Co-authored-by: Vlad0n20 <137097005+Vlad0n20@users.noreply.github.com>
1 parent aee6805 commit ebc6720

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

admin/nodes/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
from datetime import datetime
22
from enum import Enum
33

4-
import pytz
4+
from django.utils import timezone
5+
from django.core.exceptions import PermissionDenied, ValidationError
6+
from django.urls import NoReverseMatch
57
from django.db import transaction
8+
from django.db.models import F, Case, When, IntegerField
69
from django.contrib import messages
710
from django.contrib.auth.mixins import PermissionRequiredMixin
811
from django.core.exceptions import PermissionDenied, ValidationError

0 commit comments

Comments
 (0)