Skip to content

Commit

Permalink
applied migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Sauer committed Jan 29, 2025
1 parent 5dec47e commit 4420038
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/devices/forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django import forms
from .models import Device


class DeviceForm(forms.ModelForm):
class Meta:
model = Device
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Django 5.1.2 on 2025-01-29 08:35

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('campaign', '0009_remove_organization_owner_remove_organization_users_and_more'),
('devices', '0015_merge_20250129_0930'),
('organizations', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.AlterField(
model_name='device',
name='current_campaign',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='current_devices', to='campaign.campaign'),
),
migrations.AlterField(
model_name='device',
name='current_organization',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='current_devices', to='organizations.organization'),
),
migrations.AlterField(
model_name='device',
name='current_room',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='current_devices', to='campaign.room'),
),
migrations.AlterField(
model_name='device',
name='current_user',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='current_devices', to=settings.AUTH_USER_MODEL),
),
]

0 comments on commit 4420038

Please sign in to comment.