File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ class SingleArgFunc(Func):
23
23
output_field_class : type [DjangoField ]
24
24
25
25
def __init__ (self , expression : ExpressionArgument ) -> None :
26
- super ().__init__ (expression )
27
- self .output_field = self .output_field_class ()
26
+ super ().__init__ (expression , output_field = self .output_field_class ())
28
27
29
28
30
29
# Control Flow Functions
@@ -223,11 +222,9 @@ class LastInsertId(Func):
223
222
224
223
def __init__ (self , expression : ExpressionArgument | None = None ) -> None :
225
224
if expression is not None :
226
- super ().__init__ (expression )
225
+ super ().__init__ (expression , output_field = IntegerField () )
227
226
else :
228
- super ().__init__ ()
229
-
230
- self .output_field = IntegerField ()
227
+ super ().__init__ (output_field = IntegerField ())
231
228
232
229
@classmethod
233
230
def get (cls , using : str = DEFAULT_DB_ALIAS ) -> int :
You can’t perform that action at this time.
0 commit comments