D

Size: a a a
D
PB
def get_order_stauts(self, obj):
return obj.orders.order_status
NK
PB
NK
return obj.orders.objects.get(user = obj.user).order_status, но у меня FK к advencedUser. Как тогда нужно?
PB
return obj.orders.objects.get(user = obj.user).order_status, но у меня FK к advencedUser. Как тогда нужно?
NK
'NoneType' object has no attribute 'order_status'получаю
PB
'NoneType' object has no attribute 'order_status'получаю
NK
NK
PB
NK
NK
NK
PB
PB
NK
NK
PB
NK