<s> from __future__ import unicode_literals <EOL> import frappe <EOL> from frappe import throw , _ <EOL> from frappe . model . document import Document <EOL> class Currency ( Document ) : <EOL> def validate ( self ) : <EOL> if not frappe . flags . in_install_app : <EOL> frappe . clear_cache ( ) </s>
