Код: Выделить всё
class Currency(Model):
name = CharField()
...
class Invoice(Model):
currency = ForeignKey(Currency)
...
Код: Выделить всё
{
'USD': '',
'EUR': '',
...
}
Подробнее здесь: https://stackoverflow.com/questions/416 ... -in-django
Код: Выделить всё
class Currency(Model):
name = CharField()
...
class Invoice(Model):
currency = ForeignKey(Currency)
...
Код: Выделить всё
{
'USD': '',
'EUR': '',
...
}