I am trying to make django overlapping validation but could not do it, can 
anyone help me

record=[] if count > 1: for i in range(count): start_run = 
self.data.get(f'runningdefinition_set-{i}-start_run',[]) end_run = 
self.data.get(f'runningdefinition_set-{i}-end_run',[]) application_run 
=self.data.getlist(f'runningdefinition_set-{i}-application_run') for 
overlap_check in (i, start_run, end_run, application_run): if overlap_check 
not in record: record.append(overlap_check) else: raise ValidationError( 
"overlapping not allowed" )

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/85769229-7a16-4e81-9bf8-2e50dd6389acn%40googlegroups.com.

Reply via email to