Skip to content

Commit

Permalink
revert: Remove dynamic client-side (server rules based) validation
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed May 28, 2024
1 parent 338e610 commit 356fcbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 167 deletions.
6 changes: 3 additions & 3 deletions backend/experiment/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def clean_playlists(self):
errors = rules.validate_playlist(playlist)

for error in errors:
playlist_errors.append(f"Playlist {playlist.name}: {error}")
playlist_errors.append(f"Playlist [{playlist.name}]: {error}")

if playlist_errors:
self.add_error('playlists', playlist_errors)
Expand All @@ -210,8 +210,8 @@ class Meta:
}

class Media:
js = ["experiment_admin.js", "experiment_playlist_validation.js"]
css = {"all": ["experiment_admin.css", "experiment_playlist_validation.css"]}
js = ["experiment_admin.js"]
css = {"all": ["experiment_admin.css"]}


class ExportForm(Form):
Expand Down
53 changes: 0 additions & 53 deletions backend/experiment/static/experiment_playlist_validation.css

This file was deleted.

111 changes: 0 additions & 111 deletions backend/experiment/static/experiment_playlist_validation.js

This file was deleted.

0 comments on commit 356fcbb

Please sign in to comment.