2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 13:27:11 +00:00

file upload integration test working

This commit is contained in:
Philip Sargent
2021-04-30 18:02:05 +01:00
parent fde30685a8
commit 8f1d6e2cc2
8 changed files with 128 additions and 102 deletions

View File

@@ -229,12 +229,3 @@ class PersonExpedition(TroggleModel):
def day_max(self):
res = self.persontrip_set.all().aggregate(day_max=models.Max("expeditionday__date"))
return res["day_max"]
class SimpleFileModel(models.Model):
simplefile = models.FileField(upload_to='fileuploads/') # in MEDIA_FILES
title = models.CharField(max_length = 80)
class Meta:
ordering = ['title']
def __str__(self):
return f"{self.title}"