Skip to content

Commit

Permalink
Fixed: Added validation msg for updation in postgress
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek8848 authored and Abhishek8848 committed Oct 24, 2024
1 parent 7319a74 commit ee0e719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frappe/model/base_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,9 @@ def get_unique_columns(self):
return unique_columns

def db_update(self):
if frappe.db.db_type == "postgres":
self.show_unique_validation_message_for_postgress()

if self.get("__islocal") or not self.name:
self.db_insert()
return
Expand Down

0 comments on commit ee0e719

Please sign in to comment.