How to use the crash.models.symbols_upload_to function in crash

To help you get started, we’ve selected a few crash examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Crystalnix / omaha-server / omaha_server / crash / migrations / 0020_auto_20150917_1028.py View on Github external
from django.db import models, migrations
import crash.models


class Migration(migrations.Migration):

    dependencies = [
        ('crash', '0019_auto_20150722_0951'),
    ]

    operations = [
        migrations.AlterField(
            model_name='symbols',
            name='file',
            field=models.FileField(null=True, upload_to=crash.models.symbols_upload_to),
        ),
github Crystalnix / omaha-server / omaha_server / crash / migrations / 0002_symbols.py View on Github external
dependencies = [
        ('omaha', '0009_auto_20141125_1013'),
        ('crash', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Symbols',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('created', django_extensions.db.fields.CreationDateTimeField(default=django.utils.timezone.now, verbose_name='created', editable=False, blank=True)),
                ('modified', django_extensions.db.fields.ModificationDateTimeField(default=django.utils.timezone.now, verbose_name='modified', editable=False, blank=True)),
                ('debug_id', models.CharField(db_index=True, max_length=33, null=True, verbose_name=b'Debug ID', blank=True)),
                ('debug_file', models.CharField(max_length=140, null=True, verbose_name=b'Debug file name', blank=True)),
                ('file', models.FileField(upload_to=crash.models.symbols_upload_to)),
                ('is_enabled', models.BooleanField(default=False)),
                ('version', models.ForeignKey(to='omaha.Version')),
            ],
            options={
                'ordering': ('-modified', '-created'),
                'abstract': False,
                'get_latest_by': 'modified',
            },
            bases=(models.Model,),
        ),
github Crystalnix / omaha-server / omaha_server / crash / migrations / 0026_auto_20170304_0601.py View on Github external
import crash.models
import omaha_server.utils
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('crash', '0025_set_symbols_size'),
    ]

    operations = [
        migrations.AlterField(
            model_name='symbols',
            name='file',
            field=models.FileField(null=True, storage=omaha_server.utils.StorageWithSpaces(), upload_to=crash.models.symbols_upload_to),
        ),