@@ -1880,8 +1880,8 @@ class MotionChangeRecommendation(Model):
18801880 constraints = {"enum" : ["replacement" , "insertion" , "deletion" , "other" ]},
18811881 )
18821882 other_description = fields .CharField ()
1883- line_from = fields .IntegerField (constraints = {"minimum" : 0 })
1884- line_to = fields .IntegerField (constraints = {"minimum" : 0 })
1883+ line_from = fields .IntegerField (required = True , constraints = {"minimum" : 0 })
1884+ line_to = fields .IntegerField (required = True , constraints = {"minimum" : 0 })
18851885 text = fields .HTMLStrictField ()
18861886 creation_time = fields .TimestampField (read_only = True )
18871887 motion_id = fields .RelationField (
@@ -1897,7 +1897,7 @@ class MotionComment(Model):
18971897 verbose_name = "motion comment"
18981898
18991899 id = fields .IntegerField (required = True , constant = True )
1900- comment = fields .HTMLStrictField ()
1900+ comment = fields .HTMLStrictField (required = True )
19011901 motion_id = fields .RelationField (
19021902 to = {"motion" : "comment_ids" }, required = True , constant = True
19031903 )
@@ -2290,7 +2290,7 @@ class PersonalNote(Model):
22902290 to = {"meeting_user" : "personal_note_ids" }, required = True , constant = True
22912291 )
22922292 content_object_id = fields .GenericRelationField (
2293- to = {"motion" : "personal_note_ids" }, constant = True
2293+ to = {"motion" : "personal_note_ids" }, required = True , constant = True
22942294 )
22952295 meeting_id = fields .RelationField (
22962296 to = {"meeting" : "personal_note_ids" }, required = True , constant = True
@@ -2495,7 +2495,7 @@ class Projector(Model):
24952495 verbose_name = "projector"
24962496
24972497 id = fields .IntegerField (required = True , constant = True )
2498- name = fields .CharField ()
2498+ name = fields .CharField (required = True )
24992499 is_internal = fields .BooleanField (default = False )
25002500 scale = fields .IntegerField (default = 0 )
25012501 scroll = fields .IntegerField (default = 0 , constraints = {"minimum" : 0 })
@@ -2622,7 +2622,7 @@ class ProjectorMessage(Model):
26222622 verbose_name = "projector message"
26232623
26242624 id = fields .IntegerField (required = True , constant = True )
2625- message = fields .HTMLStrictField ()
2625+ message = fields .HTMLStrictField (required = True )
26262626 projection_ids = fields .RelationListField (
26272627 to = {"projection" : "content_object_id" },
26282628 on_delete = fields .OnDelete .CASCADE ,
@@ -2779,7 +2779,7 @@ class Theme(Model):
27792779 accent_300 = fields .ColorField ()
27802780 accent_400 = fields .ColorField ()
27812781 accent_50 = fields .ColorField ()
2782- accent_500 = fields .ColorField (default = "#2196f3" )
2782+ accent_500 = fields .ColorField (required = True , default = "#2196f3" )
27832783 accent_600 = fields .ColorField ()
27842784 accent_700 = fields .ColorField ()
27852785 accent_800 = fields .ColorField ()
@@ -2793,7 +2793,7 @@ class Theme(Model):
27932793 primary_300 = fields .ColorField ()
27942794 primary_400 = fields .ColorField ()
27952795 primary_50 = fields .ColorField ()
2796- primary_500 = fields .ColorField (default = "#317796" )
2796+ primary_500 = fields .ColorField (required = True , default = "#317796" )
27972797 primary_600 = fields .ColorField ()
27982798 primary_700 = fields .ColorField ()
27992799 primary_800 = fields .ColorField ()
@@ -2807,7 +2807,7 @@ class Theme(Model):
28072807 warn_300 = fields .ColorField ()
28082808 warn_400 = fields .ColorField ()
28092809 warn_50 = fields .ColorField ()
2810- warn_500 = fields .ColorField (default = "#f06400" )
2810+ warn_500 = fields .ColorField (required = True , default = "#f06400" )
28112811 warn_600 = fields .ColorField ()
28122812 warn_700 = fields .ColorField ()
28132813 warn_800 = fields .ColorField ()
@@ -2991,8 +2991,8 @@ class Vote(Model):
29912991 verbose_name = "vote"
29922992
29932993 id = fields .IntegerField (required = True , constant = True )
2994- weight = fields .DecimalField (constant = True )
2995- value = fields .CharField (constant = True )
2994+ weight = fields .DecimalField (required = True , constant = True )
2995+ value = fields .CharField (required = True , constant = True )
29962996 user_token = fields .CharField (required = True , constant = True )
29972997 option_id = fields .RelationField (
29982998 to = {"option" : "vote_ids" }, required = True , constant = True
0 commit comments