回答編集履歴
1
get_vacant_dayのif文がself.~~~になっていなかったので直した
answer
CHANGED
@@ -20,9 +20,9 @@
|
|
20
20
|
create_date = models.DateTimeField(auto_now=True)
|
21
21
|
|
22
22
|
def get_vacant_day(self) -> str:
|
23
|
-
if
|
23
|
+
if self.vacant_day_num == 3:
|
24
24
|
return '月、火'
|
25
|
-
elif
|
25
|
+
elif self.vacant_day_num == 96:
|
26
26
|
return '月、火、水、木、金、土、日'
|
27
27
|
|
28
28
|
def __str__(self):
|