Re: set initial value for field when a model insert page loaded in django admin

2017-02-18 Thread Derek
;].initial= 'some_value' class MyModelAdmin(ModelAdmin): form = MyModelForm On Saturday, 18 February 2017 08:35:54 UTC+2, sjsade...@gmail.com wrote: > > hi, i want set initial value for field when a model insert page loaded in > django admin. > i think i can do this work with

set initial value for field when a model insert page loaded in django admin

2017-02-17 Thread sjsadeghi . dev
hi, i want set initial value for field when a model insert page loaded in django admin. i think i can do this work with get_field_queryset method but in django there is no toturial for get_field_queryset. how to do this work? thanks ... -- You received this message because you are subscribed