Add Logfile upload endpoint
diff --git a/crashreports/models.py b/crashreports/models.py
index 8ac1222..449db3c 100644
--- a/crashreports/models.py
+++ b/crashreports/models.py
@@ -50,10 +50,9 @@
class LogFile(models.Model):
- logfile_type = models.TextField(max_length=36)
- device = models.ForeignKey(Device, on_delete=models.CASCADE)
+ logfile_type = models.TextField(max_length=36, default="last_kmsg")
crashreport = models.ForeignKey(Crashreport, on_delete=models.CASCADE)
- crashreport_file = models.FileField(upload_to=crashreport_file_name)
+ logfile = models.FileField(upload_to=crashreport_file_name)
class HeartBeat(models.Model):