`initial_value()` not working as expected, returning None
Closed this issue · 2 comments
adamJLev commented
Using this quite simple code:
In [13]: m = SomeModel.objects.last()
In [14]: m.initial_value('status')
>> None
In [15]: m.status = 'foo'
In [18]: m.initial_value('status')
>> 'active'
I noticed that the initial_value
method returns None on any field unless the value has been changed, which seems like a bug.
rsinger86 commented
Agreed. Thanks for pointing this out.
rsinger86 commented
This should be fixed in latest release. Thanks again.