Trying to sort a object inside another object. I want to sort by A-name, that is showned in a dropdown. Anyone that a have a idea?
Class A(models.model):
name = models.CharField(max_length=200)
Class B(models.model):
value = models.CharField(max_length=200)
value2 = models.CharField(max_length=200)
a = models.ForeignKey(A)
Class BForm(Forms.ModelForm):
class Meta:
def myPage()
myVar = BForm()