소스 검색

Bug: weight is not nullable

omassot 7 년 전
부모
커밋
0ac65fdc45
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/models.py

+ 1 - 1
main/models.py

@@ -156,7 +156,7 @@ class Story(BaseModel):
         verbose_name_plural = "stories"
         ordering = ('closed', '-updated')
         
-    WEIGHTS = ((1, 1),(2, 2),(3, 3),(5, 5),(8, 8),(13, 13),(21, 21))
+    WEIGHTS = ((None, '------'), (1, 1),(2, 2),(3, 3),(5, 5),(8, 8),(13, 13),(21, 21))
         
     epic = models.ForeignKey(Epic, 
                              on_delete=models.PROTECT,