-
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.
Automatic creation of hash based on device serial number
- Loading branch information
Showing
7 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
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,18 @@ | ||
# Generated by Django 4.2.16 on 2024-10-03 19:32 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('devices', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='device', | ||
name='hash', | ||
field=models.CharField(blank=True, max_length=64, unique=True), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
devices/migrations/0003_devicemodel_description_devicemodel_technology.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 4.2.16 on 2024-10-03 19:36 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('devices', '0002_alter_device_hash'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='devicemodel', | ||
name='description', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='devicemodel', | ||
name='technology', | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
] |
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,18 @@ | ||
# Generated by Django 4.2.16 on 2024-10-03 19:36 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('devices', '0003_devicemodel_description_devicemodel_technology'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='devicemodel', | ||
name='picture', | ||
field=models.ImageField(blank=True, null=True, upload_to='device_pictures/'), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,3 @@ | |
|
||
# Register your models here. | ||
admin.site.register(Measurement) | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
|
||
from django.apps import AppConfig | ||
""" | ||
This module defines the configuration for the 'measures' application. | ||
Classes: | ||
MeasuresConfig(AppConfig): Configuration class for the 'measures' app. | ||
- default_auto_field (str): Specifies the type of auto field to use for primary keys. | ||
- name (str): The name of the application. | ||
""" | ||
|
||
class MeasureConfig(AppConfig): | ||
class MeasuresConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'measures' |
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,17 @@ | ||
asgiref==3.8.1 | ||
certifi==2024.8.30 | ||
cffi==1.17.1 | ||
charset-normalizer==3.3.2 | ||
cryptography==43.0.1 | ||
Django==4.2.16 | ||
django-allauth==65.0.2 | ||
djangorestframework==3.15.2 | ||
idna==3.10 | ||
psycopg2==2.9.9 | ||
pycparser==2.22 | ||
PyJWT==2.9.0 | ||
python-decouple==3.8 | ||
requests==2.32.3 | ||
sqlparse==0.5.1 | ||
typing_extensions==4.12.2 | ||
urllib3==2.2.3 |