@@ -0,0 +1,558 @@
+class Data_Toko(models.Model):%0A  ....%0A%0Aclass Pengiriman(models.Model):%0A%09property = models.ForeignKey(Data_Toko, related_name='pengiriman')%0A%09metode_pengiriman = models.CharField(max_length=200, default='JNE', blank=True, null=True, help_text='Isikan Pengiriman yang tersedia, contoh: JNE')%0A%0A%0A%3E%3E%3E a = Pengiriman.objects.all()%0A%3E%3E%3E a%0A%5B%3CPengiriman: Pengiriman object%3E, %3CPengiriman: Pengiriman object%3E%5D%0A%3E%3E%3E %0A%3E%3E%3E from appearance.models import Pengiriman%0A%3E%3E%3E a = Pengiriman.objects.all()%0A%3E%3E%3E print (%5Bp.metode_pengiriman for p in a%5D)%0A%5Bu'Tiki', u'Pos Indonesia'%5D%0A%3E%3E%3E %0A

Create get-relation-foreign-objects.py