kopia lustrzana https://github.com/OpenDroneMap/WebODM
Updated foreignkeys
rodzic
5dd3394419
commit
b4bc12a3ea
|
@ -68,8 +68,8 @@ def project_post_save(sender, instance, created, **kwargs):
|
|||
|
||||
|
||||
class ProjectUserObjectPermission(UserObjectPermissionBase):
|
||||
content_object = models.ForeignKey(Project)
|
||||
content_object = models.ForeignKey(Project, on_delete=models.CASCADE)
|
||||
|
||||
|
||||
class ProjectGroupObjectPermission(GroupObjectPermissionBase):
|
||||
content_object = models.ForeignKey(Project)
|
||||
content_object = models.ForeignKey(Project, on_delete=models.CASCADE)
|
||||
|
|
|
@ -147,7 +147,7 @@ class Task(models.Model):
|
|||
name = models.CharField(max_length=255, null=True, blank=True, help_text="A label for the task")
|
||||
processing_lock = models.BooleanField(default=False, help_text="A flag indicating whether this task is currently locked for processing. When this flag is turned on, the task is in the middle of a processing step.")
|
||||
processing_time = models.IntegerField(default=-1, help_text="Number of milliseconds that elapsed since the beginning of this task (-1 indicates that no information is available)")
|
||||
processing_node = models.ForeignKey(ProcessingNode, null=True, blank=True, help_text="Processing node assigned to this task (or null if this task has not been associated yet)")
|
||||
processing_node = models.ForeignKey(ProcessingNode, on_delete=models.SET_NULL, null=True, blank=True, help_text="Processing node assigned to this task (or null if this task has not been associated yet)")
|
||||
auto_processing_node = models.BooleanField(default=True, help_text="A flag indicating whether this task should be automatically assigned a processing node")
|
||||
status = models.IntegerField(choices=STATUS_CODES, db_index=True, null=True, blank=True, help_text="Current status of the task")
|
||||
last_error = models.TextField(null=True, blank=True, help_text="The last processing error received")
|
||||
|
|
|
@ -215,8 +215,8 @@ def auto_update_node_info(sender, instance, created, **kwargs):
|
|||
pass
|
||||
|
||||
class ProcessingNodeUserObjectPermission(UserObjectPermissionBase):
|
||||
content_object = models.ForeignKey(ProcessingNode)
|
||||
content_object = models.ForeignKey(ProcessingNode, on_delete=models.CASCADE)
|
||||
|
||||
|
||||
class ProcessingNodeGroupObjectPermission(GroupObjectPermissionBase):
|
||||
content_object = models.ForeignKey(ProcessingNode)
|
||||
content_object = models.ForeignKey(ProcessingNode, on_delete=models.CASCADE)
|
||||
|
|
Ładowanie…
Reference in New Issue