allow create to pass foreignkey_id
|Reported by:||David Cramer||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
MyModel.objects.create() should allow to you to pass myforeignkey_id as you could in .get().
The reasons for this are obvious. Inserting a row into a database, where you don't have a module instance of the foreign key, but just the id value.
You could use MyForeignKey(id=x) and pass this, but that's hackish.