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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user