Hi,

I was wondering how you would go about saving a model instance  
multiple times (having seperate db entries) while changing just one  
or two fields each time. I'm wanting to use a single series of inputs  
that define the parameters to create/save multiple event objects to  
the database.

Just to give you a better idea of what im trying to do:

class Schedule(models.Model)
    ...
    date = models.DateField()
    ...
    def save(self):
       date_list = [..]
       for d in date_list:
          self.date = d
          super(Schedule, self).save()

Any suggestions, example code would be much appreciated,

Cheers

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to