### Example: ### ### from django.db import models ### from django.contrib.options import MetaOptions ### ### class ExampleNamedObject(models.Model): ### class CSV(MetaOptions): ### separator = ';' ### format = ( ### ('name', 'Name'), ### ('describe', 'Description'), ### ) ### name = models.CharField(maxlength=32) ### def describe(self): ### return str(self) ### ### from django.contrib.options.csv import csv ### for row in csv(ExampleNamedObject): ### print row