CopyPastor

Detecting plagiarism made easy.

Score: 0.9603259831058736; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2021-11-10
by BiswajitPaloi

Original Post

Original - Posted on 2011-09-16
by jargalan



            
Present in both answers; Present only in the new answer; Present only in the old answer;

try to set the path value as callable function
def get_path(instance, filename): return "site_media/jobs/%s_%s/%s" % (instance.client, instance.job_number, filename) class Articles(models.Model): .... file_path= models.FilePathField(path=get_path, match=".*\.pdf$", recursive=True)
but I'm not sure if this works, I didn't test it.
try to set the path value as callable function
def get_path(instance, filename): return "site_media/jobs/%s_%s/%s" % (instance.client, instance.job_number, filename) class CCEntry(models.Model): .... pdf = models.FilePathField(path=get_path, match=".*\.pdf$", recursive=True)
but I'm not sure if this works, I didn't test it.

        
Present in both answers; Present only in the new answer; Present only in the old answer;