<s> from __future__ import absolute_import , unicode_literals <EOL> from django . db import models <EOL> from . registry import register_setting <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> class BaseSetting ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> site = models . OneToOneField ( <EOL> '<STR_LIT>' , unique = True , db_index = True , editable = False , on_delete = models . CASCADE ) <EOL> class Meta : <EOL> abstract = True <EOL> @ classmethod <EOL> def for_site ( cls , site ) : <EOL> """<STR_LIT>""" <EOL> instance , created = cls . objects . get_or_create ( site = site ) <EOL> return instance </s>
