dddp/migrations/__init__.py
def set_default_forwards(app_name, operation, apps, schema_editor):
    """Set default value for AleaIdField."""
    model = apps.get_model(app_name, operation.model_name)
    for obj_pk in model.objects.values_list('pk', flat=True):
        model.objects.filter(pk=obj_pk).update(**{
            operation.name: get_meteor_id(model, obj_pk),
        })
def set_default_forwards(app_name, operation, apps, schema_editor):
    model = apps.get_model(app_name, operation.model_name)
    for obj_pk in model.objects.values_list('pk', flat=True):
        model.objects.filter(pk=obj_pk).update(**{
            operation.name: get_meteor_id(model, obj_pk),
        })
def set_default_forwards ( app_name , operation , apps , schema_editor ) : model = apps . get_model ( app_name , operation . model_name ) for obj_pk in model . objects . values_list ( 'pk' , flat = True ) : model . objects . filter ( pk = obj_pk ) . update ( * * { operation . name : get_meteor_id ( model , obj_pk ) , } )
Set default value for AleaIdField.
Set default value for AleaIdField .