#5533: allow create to pass foreignkey_id -----------------------+---------------------------------------------------- Reporter: dcramer | Owner: nobody Status: new | Component: Database wrapper Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 0 -----------------------+---------------------------------------------------- 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. -- Ticket URL: <http://code.djangoproject.com/ticket/5533> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
