﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9269	get_or_create having issues	sholombc@…	nobody	"when i used get_or_create """"""p, created = Inventory.objects.get_or_create(product = pr, location = lo, storage_type = storagetype)
                             if created:
                                p.amount = amount1
                                p.save()
                             else:
                                form.save()""""""
it would fail on created, and then it would save the form and make 2 records in the database the second time it would give me a error that it found 2 of the same record

the model and form file: http://dpaste.com/81855/
the product model file:  http://dpaste.com/81866/
the view code:     http://dpaste.com/81855/

the code that works: http://dpaste.com/81867/"		new	Database layer (models, ORM)	1.0			get_or_create		Unreviewed	0	0	0	0	0	0
