mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11 on 2017-04-04 19:58
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import extras.utils
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
('extras', '0005_useraction_add_bulk_create'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ImageAttachment',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('object_id', models.PositiveIntegerField()),
|
|
('image', models.ImageField(height_field=b'image_height', upload_to=extras.utils.image_upload, width_field=b'image_width')),
|
|
('image_height', models.PositiveSmallIntegerField()),
|
|
('image_width', models.PositiveSmallIntegerField()),
|
|
('name', models.CharField(blank=True, max_length=50)),
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
|
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
|
],
|
|
options={
|
|
'ordering': ['name'],
|
|
},
|
|
),
|
|
]
|