File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
contentcuration/contentcuration Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 438438 specialPermissions ,
439439 includedLicenses ,
440440 checkAndTriggerAudit: checkAndTriggerLicenseAudit ,
441- currentVersionData ,
442441 } = useLicenseAudit (props .channel , currentChannelVersion);
443442
444443 const allSpecialPermissionsChecked = ref (true );
478477
479478 if (! isPublishing .value ) {
480479 await fetchPublishedData ();
481- console .log (' versionDetail:' , versionDetail .value );
482480 await checkAndTriggerLicenseAudit ();
483- console .log (' specialPermissions:' , specialPermissions .value );
484- console .log (' currentVersionData:' , currentVersionData .value );
485481 }
486482 });
487483
496492 if (! languageCodes) return undefined ;
497493 if (languageCodes .length === 0 ) return null ;
498494
499- return languageCodes .map (code => LanguagesMap .get (code).readable_name ).join (' , ' );
495+ return languageCodes .map (code => LanguagesMap .get (code)? .readable_name || code ).join (' , ' );
500496 });
501497
502498 function categoryIdToName (categoryId ) {
Original file line number Diff line number Diff line change 11from contentcuration .models import ChannelVersion
22from contentcuration .models import SecretToken
33from contentcuration .tests import testdata
4+ from django .core .exceptions import ValidationError
45from contentcuration .tests .base import StudioTestCase
56
67
@@ -51,9 +52,8 @@ def test_unique_constraint(self):
5152 channel = self .channel ,
5253 version = 1 ,
5354 )
54- from django .db .utils import IntegrityError
5555
56- with self .assertRaises (IntegrityError ):
56+ with self .assertRaises (ValidationError ):
5757 ChannelVersion .objects .create (
5858 channel = self .channel ,
5959 version = 1 ,
You can’t perform that action at this time.
0 commit comments