- Code: Select all
url_sample_name = models.URLField(required=False)
local_sample_name = models.FilePathField(required=False, recursive=False)
.... # other data elements that will be present in both forms, whatever kind of sample is chosen.
I just want to ask, if how am I going to present, if after passing the form and submitting the sample to the another software, how will I know which sample was filled up? If it was the local sample or the URL sample... Tips and suggestions will be appreciated, just to clear out my mind.