Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Adjust restore() parameter handling

Compare
Choose a tag to compare
@brki brki released this 23 Apr 19:42
· 278 commits to master since this release

When passing ForeignKeys to restore(), follow Django practice for allowing either objects or ids to be passed.

With an object:

employee.restore(team=new_team)

With an id:

employee.restore(team_id=new_team.id)