django: How to make copy of one of the objects in the db

Posted by Oleg Tarasenko on Stack Overflow See other posts from Stack Overflow or by Oleg Tarasenko
Published on 2010-04-19T16:48:04Z Indexed on 2010/04/19 16:53 UTC
Read the original article Hit count: 288

Filed under:
|

Hi,

I wonder if there is a way to make a copy of one db item?

e.g. I have a model

class Category(models.Model):
    slug = models.CharField(max_length=200)
    name = models.CharField(max_length = 200)

So if I added one item, how can i clone it 100 times for testing?

© Stack Overflow or respective owner

Related posts about django

Related posts about sql