(self)
| 74 | return self.name |
| 75 | |
| 76 | def get_project_dir(self): |
| 77 | if self.id is None: |
| 78 | raise ValueError("Cannot call get_project_dir, id is None") |
| 79 | |
| 80 | return os.path.join(wo_settings.MEDIA_ROOT, "project", str(self.id)) |
| 81 | |
| 82 | def tasks(self): |
| 83 | return self.task_set.only('id') |
no outgoing calls