We have created an excel import application called cute_import at https://bitbucket.org/darrenma/django-cuteimport which is able to create and update records based on an excel spreadsheet. This works well for one model currently. Currently it imports foreign keys based on how they are matched up using a get or create and so will create the foreign key if not found but only with the one field. We would like to do something similar for generic relations and manytomany fields before moving on to be able to import multiple tables at once.
I'm thinking of possibly matching the object on a field to a value but not entirely sure how to do this. object = generic.GenericForeignKey('content_type', 'object_id') Can anyone shed some light on how this may be done? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.