watchdog_kj_kultura/contrib/sites/migrations/0003_set_site_domain_and_name.py
def update_site_forward(apps, schema_editor):
    """Set site domain and name."""
    Site = apps.get_model('sites', 'Site')
    Site.objects.update_or_create(
        id=settings.SITE_ID,
        defaults={
            'domain': 'kultura.kj.org.pl',
            'name': 'watchdog-kj-kultura'
        }
    )
Set site domain and name.
Set site domain and name.
Set site domain and name .
def update_site_forward(apps, schema_editor):
    Site = apps.get_model('sites', 'Site')
    Site.objects.update_or_create(
        id=settings.SITE_ID,
        defaults={
            'domain': 'kultura.kj.org.pl',
            'name': 'watchdog-kj-kultura'
        }
    )
def update_site_forward ( apps , schema_editor ) : Site = apps . get_model ( 'sites' , 'Site' ) Site . objects . update_or_create ( id = settings . SITE_ID , defaults = { 'domain' : 'kultura.kj.org.pl' , 'name' : 'watchdog-kj-kultura' } )
Set site domain and name.
Set site domain and name .
"""Set site domain and name."""
apps
schema_editor