from django import newforms as forms from django.db import models ################ models #################### class BillCode(models.Model): description = models.CharField(maxlength=20) class Payment(models.Model): billCode = models.ForeignKey(BillCode) ################# views #################### class Choices: def _choices(self): return [(e.id, e.description) for e in BillCode.objects.all()] choices = property(_choices) class PaymentForm(forms.Form): billCode_id = forms.ChoiceField(label="Bill Code", choices=[('','')]+Choices().choices)