-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
139 label code generieren und im device detail anzeigen (#141)
* added ModelCounter * changed post url back to datahub * changed model filed type to int * added QR-Code Text field * added get_device_name to Device model * format qr-code in device detail * add dev api device initial station info test * create change log for device and user * #84 display logs for Organization, room and user * #143 save when device is saved assign name if model is set * #144 --------- Co-authored-by: Nik Sauer <[email protected]> Co-authored-by: Silvio Heinze <[email protected]>
- Loading branch information
1 parent
33151b7
commit 1206955
Showing
9 changed files
with
342 additions
and
98 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
app/devices/migrations/0017_modelcounter_device_auto_number.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 5.1.5 on 2025-01-30 10:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('devices', '0016_alter_device_current_campaign_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ModelCounter', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('model', models.CharField(max_length=255, unique=True)), | ||
('last_auto_number', models.IntegerField(default=0)), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='device', | ||
name='auto_number', | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
app/devices/migrations/0018_remove_modelcounter_id_alter_modelcounter_model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 5.1.5 on 2025-01-30 10:22 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('devices', '0017_modelcounter_device_auto_number'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='modelcounter', | ||
name='id', | ||
), | ||
migrations.AlterField( | ||
model_name='modelcounter', | ||
name='model', | ||
field=models.CharField(max_length=255, primary_key=True, serialize=False), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
app/devices/migrations/0019_alter_device_model_alter_modelcounter_model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 5.1.5 on 2025-01-30 10:47 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('devices', '0018_remove_modelcounter_id_alter_modelcounter_model'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='device', | ||
name='model', | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='modelcounter', | ||
name='model', | ||
field=models.IntegerField(primary_key=True, serialize=False), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.