1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-04 21:25:24 +00:00

pleased the linter

This commit is contained in:
Bram Wiepjes 2019-09-22 15:16:34 +02:00
parent 8da650c3a4
commit 274576fb4f
4 changed files with 28 additions and 10 deletions
backend/src/baserow
api/v0/applications
contrib/database
core/migrations

View file

@ -29,7 +29,6 @@ class ApplicationCreateSerializer(serializers.ModelSerializer):
fields = ('name', 'type')
class ApplicationUpdateSerializer(serializers.ModelSerializer):
class Meta:
model = Application

View file

@ -1,6 +1,3 @@
from django.conf.urls import url
app_name = 'baserow.contrib.database'
urlpatterns = [

View file

@ -16,16 +16,31 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='Database',
fields=[
('application_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Application')),
('application_ptr', models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to='core.Application')
),
],
bases=('core.application',),
),
migrations.CreateModel(
name='Table',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('id', models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID')
),
('order', models.PositiveIntegerField()),
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='database.Database')),
('group', models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to='database.Database')
),
],
),
]

View file

@ -17,11 +17,18 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='Application',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('id', models.AutoField(auto_created=True, primary_key=True,
serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('order', models.PositiveIntegerField()),
('content_type', models.ForeignKey(on_delete=models.SET(baserow.core.models.get_default_application_content_type), related_name='applications', to='contenttypes.ContentType', verbose_name='content type')),
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Group')),
('content_type', models.ForeignKey(
on_delete=models.SET(
baserow.core.models.get_default_application_content_type),
related_name='applications', to='contenttypes.ContentType',
verbose_name='content type')
),
('group', models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to='core.Group')),
],
options={
'ordering': ('order',),