]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: use OneToOneField instead of ForeignKey
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 10 Dec 2015 03:56:38 +0000 (19:56 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Dec 2015 23:12:44 +0000 (23:12 +0000)
commitaaa4319ebbb06facb77b4ba936cf3aa2068ff238
treee14929de32dbd8dbef3ff762415d5bb55e536c2f
parent89386aab888f806d5aa4a8083c06566e48d9445b
toaster: use OneToOneField instead of ForeignKey

Used OneToOneField to reference BuildRequest in BRBitbake model.

Fixed django warning:
WARNINGS: Setting unique=True on a ForeignKey has the same effect
          as using a OneToOneField.

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/bldcontrol/bbcontroller.py
lib/toaster/bldcontrol/localhostbecontroller.py
lib/toaster/bldcontrol/management/commands/runbuilds.py
lib/toaster/bldcontrol/models.py
lib/toaster/bldcontrol/tests.py