« Previous | Next » 

Revision 34a619ae


Added by Vangelis Koukis almost 14 years ago

Make owner a not null ForeignKey in VirtualMachine

Make owner a required, not null foreign key in VirtualMachine.
Also fix fixtures and the implementation of POST /servers to include
a proper owner value (everything gets to be owned by the single SynnefoUser
defined in initial_data.json).

Recent commits for charging require a not null value for
vm.owner, otherwise NoneType exceptions get thrown.

All current db and api tests pass.


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences