I\'m currently following http://www.tangowithdjango.com and I\'m trying to populate an existing DB with populate_rango.py. When I create the new categories, I\'m tr
populate_rango.py
The following worked for me, when added to populate_rango.py -
def add_cat(name, views, likes): c = Category.objects.get_or_create(name=name)[0] c.views = views c.likes = likes c.save() return c
The difference might be due to c.save()