File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
tests/apps/migrations/auto/integration Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -372,11 +372,11 @@ def _validate_default(
372372 ):
373373 self ._validated = True
374374 return True
375- else :
376- raise ValueError (
377- f"The default { default } isn't one of the permitted types - "
378- f"{ allowed_types } "
379- )
375+
376+ raise ValueError (
377+ f"The default { default } isn't one of the permitted types - "
378+ f"{ allowed_types } "
379+ )
380380
381381 def _validate_choices (
382382 self , choices : t .Type [Enum ], allowed_type : t .Type [t .Any ]
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def test_uuid_column(self):
152152 UUID (default = uuid .uuid4 ),
153153 UUID (default = uuid_default ),
154154 UUID (default = UUID4 ()),
155- UUID (null = True ),
155+ UUID (null = True , default = None ),
156156 UUID (null = False ),
157157 UUID (index = True ),
158158 UUID (index = False ),
You can’t perform that action at this time.
0 commit comments