rsinger86/django-lifecycle

`initial_value()` not working as expected, returning None

Closed this issue · 2 comments

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.

Agreed. Thanks for pointing this out.

This should be fixed in latest release. Thanks again.