تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1514 أدوات العرض

when trying to save an entry for my custom module paylink, that contains an ID field, a onetomany field to pick customer invoices, then related fields to pull through the amount of the invoice and the currency I am getting this error upon trying to save the record

psycopg2.errors.UndefinedColumn: column "currency_id" of relation "paylink_paylink" does not exist
LINE 1: ...paylink_paylink" SET "amount_total" = '36512.50', "currency_...
                                                             ^


The above server error caused the following client error:
null


الصورة الرمزية
إهمال

better if you add the relevant code along with the question

yes add more relavant code otherwise:
assumption:
-you have a new model named paylink.paylink and you did not add the currency_id field or you defined the currency field on a widget or python code as 'currency' without the '_id'

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
1769
4
أبريل 25
12176
1
فبراير 25
3544
1
يناير 25
1410
1
يناير 25
4897