1 2 3 4 5 6 7 8 9 | from django.db import transaction
@transaction.commit_manually
def viewfunc(request):
...
for item in items:
entry = Entry(a1=item.a1, a2=item.a2)
entry.save()
transaction.commit()
|
More like this
- Bulk Insert - updated 5/9/2008 by coolie 5 years, 7 months ago
- Comma Seprated Character Field to store Geographic Coordinates by vijay.shanker 5 months ago
- Database cleanup by skyjur 2 years, 9 months ago
- syncdata command by graham 4 years, 9 months ago
- MintCache by gfranxman 6 years, 1 month ago
Comments