diff --git a/README.md b/README.md index 3f144df..b737089 100644 --- a/README.md +++ b/README.md @@ -18,5 +18,5 @@ python3 manage.py loaddata fixtures/data.json ## Test Account The test account you can use: -- user: gw +- user: admin - password: abcdef diff --git a/aviary/migrations/0001_initial.py b/aviary/migrations/0001_initial.py index ce58632..a7c5bb8 100644 --- a/aviary/migrations/0001_initial.py +++ b/aviary/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.2 on 2023-06-28 20:12 +# Generated by Django 4.2.2 on 2023-06-28 20:31 from django.db import migrations, models import uuid diff --git a/bird/admin.py b/bird/admin.py index 9f23423..5e30605 100644 --- a/bird/admin.py +++ b/bird/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin -from .models import Bird, FallenBird +from .models import Bird, FallenBird, BirdStatus @admin.register(FallenBird) @@ -18,3 +18,8 @@ class FallenBirdAdmin(admin.ModelAdmin): @admin.register(Bird) class BirdAdmin(admin.ModelAdmin): list_display = ["name"] + + +@admin.register(BirdStatus) +class BirdStatusAdmin(admin.ModelAdmin): + list_display = ["description"] diff --git a/bird/migrations/0001_initial.py b/bird/migrations/0001_initial.py index 9fe2625..2d974bf 100644 --- a/bird/migrations/0001_initial.py +++ b/bird/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.2 on 2023-06-28 20:12 +# Generated by Django 4.2.2 on 2023-06-28 20:57 from django.conf import settings from django.db import migrations, models @@ -12,9 +12,9 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ("rescuer", "0001_initial"), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("aviary", "0001_initial"), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ("rescuer", "0001_initial"), ] operations = [ @@ -33,6 +33,21 @@ class Migration(migrations.Migration): ("name", models.CharField(max_length=256)), ], ), + migrations.CreateModel( + name="BirdStatus", + fields=[ + ( + "id", + models.UUIDField( + default=uuid.uuid4, + editable=False, + primary_key=True, + serialize=False, + ), + ), + ("description", models.CharField(max_length=256)), + ], + ), migrations.CreateModel( name="FallenBird", fields=[ @@ -378,7 +393,10 @@ class Migration(migrations.Migration): ( "aviary", models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to="aviary.aviary" + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + to="aviary.aviary", ), ), ( @@ -390,10 +408,21 @@ class Migration(migrations.Migration): ( "rescuer", models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, to="rescuer.rescuer", ), ), + ( + "status", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + to="bird.birdstatus", + ), + ), ( "user", models.ForeignKey( diff --git a/bird/models.py b/bird/models.py index 9962a9f..ef526f1 100644 --- a/bird/models.py +++ b/bird/models.py @@ -2,11 +2,18 @@ from uuid import uuid4 from django.conf import settings from django.db import models - from djmoney.models.fields import MoneyField -from rescuer.models import Rescuer from aviary.models import Aviary +from rescuer.models import Rescuer + + +# STATUS = [ +# ("In Behandlung", "In Behandlung"), +# ("In Auswilderung", "In Auswilderung"), +# ("Ausgewildert", "Ausgewildert"), +# ("Verstorben", "Verstorben"), +# ] class FallenBird(models.Model): @@ -17,12 +24,16 @@ class FallenBird(models.Model): created = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) diagnostic_finding = models.CharField(max_length=256) - cost_sum = MoneyField( max_digits=4, decimal_places=2, - default_currency='EUR') - rescuer = models.ForeignKey(Rescuer, on_delete=models.CASCADE) - user = models.ForeignKey( settings.AUTH_USER_MODEL, - on_delete=models.CASCADE) - aviary = models.ForeignKey(Aviary, on_delete=models.CASCADE) + cost_sum = MoneyField( + max_digits=4, decimal_places=2, default_currency='EUR') + rescuer = models.ForeignKey( + Rescuer, on_delete=models.SET_NULL, blank=True, null=True) + user = models.ForeignKey( + settings.AUTH_USER_MODEL, on_delete=models.CASCADE) + aviary = models.ForeignKey( + Aviary, on_delete=models.SET_NULL, blank=True, null=True) + status = models.ForeignKey( + "BirdStatus", on_delete=models.SET_NULL, blank=True, null=True) def __str__(self): return self.place @@ -34,3 +45,11 @@ class Bird(models.Model): def __str__(self): return self.name + + +class BirdStatus(models.Model): + id = models.UUIDField(primary_key=True, default=uuid4, editable=False) + description = models.CharField(max_length=256) + + def __str__(self): + return self.description diff --git a/fixtures/data.json b/fixtures/data.json index d6649c4..d2695e3 100644 --- a/fixtures/data.json +++ b/fixtures/data.json @@ -1 +1 @@ -[{"model": "admin.logentry", "pk": 1, "fields": {"action_time": "2023-06-28T18:46:33.139Z", "user": 1, "content_type": 7, "object_id": "1", "object_repr": "gw@email.de", "action_flag": 2, "change_message": "[{\"changed\": {\"fields\": [\"Verified\", \"Primary\"]}}]"}}, {"model": "admin.logentry", "pk": 2, "fields": {"action_time": "2023-06-28T18:46:43.729Z", "user": 1, "content_type": 12, "object_id": "d5ce0cc7-77fc-4ecb-a462-bca4edffce5c", "object_repr": "Amsel", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 3, "fields": {"action_time": "2023-06-28T18:46:48.938Z", "user": 1, "content_type": 12, "object_id": "c667803a-6501-4ed7-b709-ffef43439697", "object_repr": "Kohlmeise", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 4, "fields": {"action_time": "2023-06-28T18:46:53.253Z", "user": 1, "content_type": 12, "object_id": "b92095ed-8010-4544-bad9-daded37605bc", "object_repr": "Spatz", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "auth.permission", "pk": 1, "fields": {"name": "Can add log entry", "content_type": 1, "codename": "add_logentry"}}, {"model": "auth.permission", "pk": 2, "fields": {"name": "Can change log entry", "content_type": 1, "codename": "change_logentry"}}, {"model": "auth.permission", "pk": 3, "fields": {"name": "Can delete log entry", "content_type": 1, "codename": "delete_logentry"}}, {"model": "auth.permission", "pk": 4, "fields": {"name": "Can view log entry", "content_type": 1, "codename": "view_logentry"}}, {"model": "auth.permission", "pk": 5, "fields": {"name": "Can add permission", "content_type": 2, "codename": "add_permission"}}, {"model": "auth.permission", "pk": 6, "fields": {"name": "Can change permission", "content_type": 2, "codename": "change_permission"}}, {"model": "auth.permission", "pk": 7, "fields": {"name": "Can delete permission", "content_type": 2, "codename": "delete_permission"}}, {"model": "auth.permission", "pk": 8, "fields": {"name": "Can view permission", "content_type": 2, "codename": "view_permission"}}, {"model": "auth.permission", "pk": 9, "fields": {"name": "Can add group", "content_type": 3, "codename": "add_group"}}, {"model": "auth.permission", "pk": 10, "fields": {"name": "Can change group", "content_type": 3, "codename": "change_group"}}, {"model": "auth.permission", "pk": 11, "fields": {"name": "Can delete group", "content_type": 3, "codename": "delete_group"}}, {"model": "auth.permission", "pk": 12, "fields": {"name": "Can view group", "content_type": 3, "codename": "view_group"}}, {"model": "auth.permission", "pk": 13, "fields": {"name": "Can add user", "content_type": 4, "codename": "add_user"}}, {"model": "auth.permission", "pk": 14, "fields": {"name": "Can change user", "content_type": 4, "codename": "change_user"}}, {"model": "auth.permission", "pk": 15, "fields": {"name": "Can delete user", "content_type": 4, "codename": "delete_user"}}, {"model": "auth.permission", "pk": 16, "fields": {"name": "Can view user", "content_type": 4, "codename": "view_user"}}, {"model": "auth.permission", "pk": 17, "fields": {"name": "Can add content type", "content_type": 5, "codename": "add_contenttype"}}, {"model": "auth.permission", "pk": 18, "fields": {"name": "Can change content type", "content_type": 5, "codename": "change_contenttype"}}, {"model": "auth.permission", "pk": 19, "fields": {"name": "Can delete content type", "content_type": 5, "codename": "delete_contenttype"}}, {"model": "auth.permission", "pk": 20, "fields": {"name": "Can view content type", "content_type": 5, "codename": "view_contenttype"}}, {"model": "auth.permission", "pk": 21, "fields": {"name": "Can add session", "content_type": 6, "codename": "add_session"}}, {"model": "auth.permission", "pk": 22, "fields": {"name": "Can change session", "content_type": 6, "codename": "change_session"}}, {"model": "auth.permission", "pk": 23, "fields": {"name": "Can delete session", "content_type": 6, "codename": "delete_session"}}, {"model": "auth.permission", "pk": 24, "fields": {"name": "Can view session", "content_type": 6, "codename": "view_session"}}, {"model": "auth.permission", "pk": 25, "fields": {"name": "Can add email address", "content_type": 7, "codename": "add_emailaddress"}}, {"model": "auth.permission", "pk": 26, "fields": {"name": "Can change email address", "content_type": 7, "codename": "change_emailaddress"}}, {"model": "auth.permission", "pk": 27, "fields": {"name": "Can delete email address", "content_type": 7, "codename": "delete_emailaddress"}}, {"model": "auth.permission", "pk": 28, "fields": {"name": "Can view email address", "content_type": 7, "codename": "view_emailaddress"}}, {"model": "auth.permission", "pk": 29, "fields": {"name": "Can add email confirmation", "content_type": 8, "codename": "add_emailconfirmation"}}, {"model": "auth.permission", "pk": 30, "fields": {"name": "Can change email confirmation", "content_type": 8, "codename": "change_emailconfirmation"}}, {"model": "auth.permission", "pk": 31, "fields": {"name": "Can delete email confirmation", "content_type": 8, "codename": "delete_emailconfirmation"}}, {"model": "auth.permission", "pk": 32, "fields": {"name": "Can view email confirmation", "content_type": 8, "codename": "view_emailconfirmation"}}, {"model": "auth.permission", "pk": 33, "fields": {"name": "Can add social account", "content_type": 9, "codename": "add_socialaccount"}}, {"model": "auth.permission", "pk": 34, "fields": {"name": "Can change social account", "content_type": 9, "codename": "change_socialaccount"}}, {"model": "auth.permission", "pk": 35, "fields": {"name": "Can delete social account", "content_type": 9, "codename": "delete_socialaccount"}}, {"model": "auth.permission", "pk": 36, "fields": {"name": "Can view social account", "content_type": 9, "codename": "view_socialaccount"}}, {"model": "auth.permission", "pk": 37, "fields": {"name": "Can add social application", "content_type": 10, "codename": "add_socialapp"}}, {"model": "auth.permission", "pk": 38, "fields": {"name": "Can change social application", "content_type": 10, "codename": "change_socialapp"}}, {"model": "auth.permission", "pk": 39, "fields": {"name": "Can delete social application", "content_type": 10, "codename": "delete_socialapp"}}, {"model": "auth.permission", "pk": 40, "fields": {"name": "Can view social application", "content_type": 10, "codename": "view_socialapp"}}, {"model": "auth.permission", "pk": 41, "fields": {"name": "Can add social application token", "content_type": 11, "codename": "add_socialtoken"}}, {"model": "auth.permission", "pk": 42, "fields": {"name": "Can change social application token", "content_type": 11, "codename": "change_socialtoken"}}, {"model": "auth.permission", "pk": 43, "fields": {"name": "Can delete social application token", "content_type": 11, "codename": "delete_socialtoken"}}, {"model": "auth.permission", "pk": 44, "fields": {"name": "Can view social application token", "content_type": 11, "codename": "view_socialtoken"}}, {"model": "auth.permission", "pk": 45, "fields": {"name": "Can add bird", "content_type": 12, "codename": "add_bird"}}, {"model": "auth.permission", "pk": 46, "fields": {"name": "Can change bird", "content_type": 12, "codename": "change_bird"}}, {"model": "auth.permission", "pk": 47, "fields": {"name": "Can delete bird", "content_type": 12, "codename": "delete_bird"}}, {"model": "auth.permission", "pk": 48, "fields": {"name": "Can view bird", "content_type": 12, "codename": "view_bird"}}, {"model": "auth.permission", "pk": 49, "fields": {"name": "Can add fallen bird", "content_type": 13, "codename": "add_fallenbird"}}, {"model": "auth.permission", "pk": 50, "fields": {"name": "Can change fallen bird", "content_type": 13, "codename": "change_fallenbird"}}, {"model": "auth.permission", "pk": 51, "fields": {"name": "Can delete fallen bird", "content_type": 13, "codename": "delete_fallenbird"}}, {"model": "auth.permission", "pk": 52, "fields": {"name": "Can view fallen bird", "content_type": 13, "codename": "view_fallenbird"}}, {"model": "auth.permission", "pk": 53, "fields": {"name": "Can add rescuer", "content_type": 14, "codename": "add_rescuer"}}, {"model": "auth.permission", "pk": 54, "fields": {"name": "Can change rescuer", "content_type": 14, "codename": "change_rescuer"}}, {"model": "auth.permission", "pk": 55, "fields": {"name": "Can delete rescuer", "content_type": 14, "codename": "delete_rescuer"}}, {"model": "auth.permission", "pk": 56, "fields": {"name": "Can view rescuer", "content_type": 14, "codename": "view_rescuer"}}, {"model": "auth.user", "pk": 1, "fields": {"password": "pbkdf2_sha256$600000$UqpBk84B7jNXESMUBQfHXS$ANij4C427rThU+ki0eKFpZOha3H0uxVz+qflQ2l0+OI=", "last_login": "2023-06-28T18:46:23.735Z", "is_superuser": true, "username": "gw", "first_name": "", "last_name": "", "email": "gw@email.de", "is_staff": true, "is_active": true, "date_joined": "2023-06-28T18:45:10.221Z", "groups": [], "user_permissions": []}}, {"model": "contenttypes.contenttype", "pk": 1, "fields": {"app_label": "admin", "model": "logentry"}}, {"model": "contenttypes.contenttype", "pk": 2, "fields": {"app_label": "auth", "model": "permission"}}, {"model": "contenttypes.contenttype", "pk": 3, "fields": {"app_label": "auth", "model": "group"}}, {"model": "contenttypes.contenttype", "pk": 4, "fields": {"app_label": "auth", "model": "user"}}, {"model": "contenttypes.contenttype", "pk": 5, "fields": {"app_label": "contenttypes", "model": "contenttype"}}, {"model": "contenttypes.contenttype", "pk": 6, "fields": {"app_label": "sessions", "model": "session"}}, {"model": "contenttypes.contenttype", "pk": 7, "fields": {"app_label": "account", "model": "emailaddress"}}, {"model": "contenttypes.contenttype", "pk": 8, "fields": {"app_label": "account", "model": "emailconfirmation"}}, {"model": "contenttypes.contenttype", "pk": 9, "fields": {"app_label": "socialaccount", "model": "socialaccount"}}, {"model": "contenttypes.contenttype", "pk": 10, "fields": {"app_label": "socialaccount", "model": "socialapp"}}, {"model": "contenttypes.contenttype", "pk": 11, "fields": {"app_label": "socialaccount", "model": "socialtoken"}}, {"model": "contenttypes.contenttype", "pk": 12, "fields": {"app_label": "bird", "model": "bird"}}, {"model": "contenttypes.contenttype", "pk": 13, "fields": {"app_label": "bird", "model": "fallenbird"}}, {"model": "contenttypes.contenttype", "pk": 14, "fields": {"app_label": "rescuer", "model": "rescuer"}}, {"model": "sessions.session", "pk": "ztqqxjel2j72lt2ehxonllg76terb78f", "fields": {"session_data": ".eJxVjkEOwiAURO_C2hCgQMGle8_QfP4HW21oAmVlvLttwkK3M29e5s0maPs8tRrLtBC7Mskuv1kAfMV8FvSE_Ng4bnkvS-Anwntb-X2juN46-yeYoc7HWisckh_RoAZngxJGk_M6WKNIeIqYEgzKE1ESoxmctJqCkVYJCenYHtISK7Z-M7d1_XwBCL8-WA:1qEaCV:gRRddMUNg8OC6sZOufMbzLp51WPhN67-1QcQ1RJ8UlI", "expire_date": "2023-07-12T18:47:35.647Z"}}, {"model": "account.emailaddress", "pk": 1, "fields": {"user": 1, "email": "gw@email.de", "verified": true, "primary": true}}, {"model": "bird.fallenbird", "pk": "072d35ec-722b-4083-abc4-9ead235be832", "fields": {"bird": "d5ce0cc7-77fc-4ecb-a462-bca4edffce5c", "date_found": "2023-06-28", "place": "Käthe Kollwitz Straße 16", "created": "2023-06-28T18:47:35.645Z", "updated": "2023-06-28T18:47:35.645Z", "rescuer": "be868286-cae6-4585-8284-df4cab7bbdaa", "user": 1}}, {"model": "bird.bird", "pk": "b92095ed-8010-4544-bad9-daded37605bc", "fields": {"name": "Spatz"}}, {"model": "bird.bird", "pk": "c667803a-6501-4ed7-b709-ffef43439697", "fields": {"name": "Kohlmeise"}}, {"model": "bird.bird", "pk": "d5ce0cc7-77fc-4ecb-a462-bca4edffce5c", "fields": {"name": "Amsel"}}, {"model": "rescuer.rescuer", "pk": "be868286-cae6-4585-8284-df4cab7bbdaa", "fields": {"first_name": "Elmo", "last_name": "Piggy", "street": "Sesamstraße", "street_number": "22", "city": "Dreamworld", "zip_code": "08873", "email": "elmo@emal.de", "phone": "+49871623662", "user": 1}}] \ No newline at end of file +[{"model": "admin.logentry", "pk": 1, "fields": {"action_time": "2023-06-28T20:58:58.826Z", "user": 1, "content_type": 7, "object_id": "1", "object_repr": "admin@email.de", "action_flag": 2, "change_message": "[{\"changed\": {\"fields\": [\"Verified\", \"Primary\"]}}]"}}, {"model": "admin.logentry", "pk": 2, "fields": {"action_time": "2023-06-28T20:59:16.956Z", "user": 1, "content_type": 13, "object_id": "9a00beef-2d3b-4b7c-aeeb-21ae3702c250", "object_repr": "Amsel", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 3, "fields": {"action_time": "2023-06-28T20:59:45.301Z", "user": 1, "content_type": 16, "object_id": "fc2ff18b-b99a-497a-aaa3-b26e90317d35", "object_repr": "Elmo Piggy", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 4, "fields": {"action_time": "2023-06-28T21:00:03.843Z", "user": 1, "content_type": 15, "object_id": "310796ff-06b1-4ed2-b968-6f9ee3d84ae7", "object_repr": "Am Planetarium 2", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 5, "fields": {"action_time": "2023-06-28T21:03:41.813Z", "user": 1, "content_type": 14, "object_id": "24343d7a-4bbb-4195-b710-6299e5eb4d6b", "object_repr": "In Behandlung", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 6, "fields": {"action_time": "2023-06-28T21:03:44.839Z", "user": 1, "content_type": 15, "object_id": "310796ff-06b1-4ed2-b968-6f9ee3d84ae7", "object_repr": "Am Planetarium 2", "action_flag": 2, "change_message": "[{\"changed\": {\"fields\": [\"Status\"]}}]"}}, {"model": "admin.logentry", "pk": 7, "fields": {"action_time": "2023-06-28T21:04:08.747Z", "user": 1, "content_type": 14, "object_id": "bc20ff01-8fc9-4192-b686-dab5100839bc", "object_repr": "In Auswilderung", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 8, "fields": {"action_time": "2023-06-28T21:04:17.878Z", "user": 1, "content_type": 14, "object_id": "300d873a-bf3b-4c88-9d7f-4a15ff493caf", "object_repr": "Ausgewildert", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 9, "fields": {"action_time": "2023-06-28T21:04:25.562Z", "user": 1, "content_type": 14, "object_id": "a4796236-8b6a-4a75-9788-e4b1451ba692", "object_repr": "Verstorben", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 10, "fields": {"action_time": "2023-06-28T21:05:18.638Z", "user": 1, "content_type": 12, "object_id": "8055f3fb-9b4b-4a1b-8144-8e30900b5071", "object_repr": "Voliere 1", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 11, "fields": {"action_time": "2023-06-28T21:05:28.566Z", "user": 1, "content_type": 12, "object_id": "3b478eae-c920-493c-b336-e75506759e63", "object_repr": "Voliere 2", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "admin.logentry", "pk": 12, "fields": {"action_time": "2023-06-28T21:05:43.015Z", "user": 1, "content_type": 15, "object_id": "310796ff-06b1-4ed2-b968-6f9ee3d84ae7", "object_repr": "Am Planetarium 2", "action_flag": 2, "change_message": "[{\"changed\": {\"fields\": [\"Aviary\"]}}]"}}, {"model": "admin.logentry", "pk": 13, "fields": {"action_time": "2023-06-28T21:05:50.533Z", "user": 1, "content_type": 15, "object_id": "310796ff-06b1-4ed2-b968-6f9ee3d84ae7", "object_repr": "Am Planetarium 2", "action_flag": 2, "change_message": "[{\"changed\": {\"fields\": [\"Aviary\"]}}]"}}, {"model": "admin.logentry", "pk": 14, "fields": {"action_time": "2023-06-28T21:06:13.273Z", "user": 1, "content_type": 13, "object_id": "9a00beef-2d3b-4b7c-aeeb-21ae3702c250", "object_repr": "Amsel", "action_flag": 2, "change_message": "[]"}}, {"model": "admin.logentry", "pk": 15, "fields": {"action_time": "2023-06-28T21:06:18.034Z", "user": 1, "content_type": 13, "object_id": "1ae3ff6a-5364-41ce-9d67-51d400f709be", "object_repr": "Spatz", "action_flag": 1, "change_message": "[{\"added\": {}}]"}}, {"model": "auth.permission", "pk": 1, "fields": {"name": "Can add log entry", "content_type": 1, "codename": "add_logentry"}}, {"model": "auth.permission", "pk": 2, "fields": {"name": "Can change log entry", "content_type": 1, "codename": "change_logentry"}}, {"model": "auth.permission", "pk": 3, "fields": {"name": "Can delete log entry", "content_type": 1, "codename": "delete_logentry"}}, {"model": "auth.permission", "pk": 4, "fields": {"name": "Can view log entry", "content_type": 1, "codename": "view_logentry"}}, {"model": "auth.permission", "pk": 5, "fields": {"name": "Can add permission", "content_type": 2, "codename": "add_permission"}}, {"model": "auth.permission", "pk": 6, "fields": {"name": "Can change permission", "content_type": 2, "codename": "change_permission"}}, {"model": "auth.permission", "pk": 7, "fields": {"name": "Can delete permission", "content_type": 2, "codename": "delete_permission"}}, {"model": "auth.permission", "pk": 8, "fields": {"name": "Can view permission", "content_type": 2, "codename": "view_permission"}}, {"model": "auth.permission", "pk": 9, "fields": {"name": "Can add group", "content_type": 3, "codename": "add_group"}}, {"model": "auth.permission", "pk": 10, "fields": {"name": "Can change group", "content_type": 3, "codename": "change_group"}}, {"model": "auth.permission", "pk": 11, "fields": {"name": "Can delete group", "content_type": 3, "codename": "delete_group"}}, {"model": "auth.permission", "pk": 12, "fields": {"name": "Can view group", "content_type": 3, "codename": "view_group"}}, {"model": "auth.permission", "pk": 13, "fields": {"name": "Can add user", "content_type": 4, "codename": "add_user"}}, {"model": "auth.permission", "pk": 14, "fields": {"name": "Can change user", "content_type": 4, "codename": "change_user"}}, {"model": "auth.permission", "pk": 15, "fields": {"name": "Can delete user", "content_type": 4, "codename": "delete_user"}}, {"model": "auth.permission", "pk": 16, "fields": {"name": "Can view user", "content_type": 4, "codename": "view_user"}}, {"model": "auth.permission", "pk": 17, "fields": {"name": "Can add content type", "content_type": 5, "codename": "add_contenttype"}}, {"model": "auth.permission", "pk": 18, "fields": {"name": "Can change content type", "content_type": 5, "codename": "change_contenttype"}}, {"model": "auth.permission", "pk": 19, "fields": {"name": "Can delete content type", "content_type": 5, "codename": "delete_contenttype"}}, {"model": "auth.permission", "pk": 20, "fields": {"name": "Can view content type", "content_type": 5, "codename": "view_contenttype"}}, {"model": "auth.permission", "pk": 21, "fields": {"name": "Can add session", "content_type": 6, "codename": "add_session"}}, {"model": "auth.permission", "pk": 22, "fields": {"name": "Can change session", "content_type": 6, "codename": "change_session"}}, {"model": "auth.permission", "pk": 23, "fields": {"name": "Can delete session", "content_type": 6, "codename": "delete_session"}}, {"model": "auth.permission", "pk": 24, "fields": {"name": "Can view session", "content_type": 6, "codename": "view_session"}}, {"model": "auth.permission", "pk": 25, "fields": {"name": "Can add email address", "content_type": 7, "codename": "add_emailaddress"}}, {"model": "auth.permission", "pk": 26, "fields": {"name": "Can change email address", "content_type": 7, "codename": "change_emailaddress"}}, {"model": "auth.permission", "pk": 27, "fields": {"name": "Can delete email address", "content_type": 7, "codename": "delete_emailaddress"}}, {"model": "auth.permission", "pk": 28, "fields": {"name": "Can view email address", "content_type": 7, "codename": "view_emailaddress"}}, {"model": "auth.permission", "pk": 29, "fields": {"name": "Can add email confirmation", "content_type": 8, "codename": "add_emailconfirmation"}}, {"model": "auth.permission", "pk": 30, "fields": {"name": "Can change email confirmation", "content_type": 8, "codename": "change_emailconfirmation"}}, {"model": "auth.permission", "pk": 31, "fields": {"name": "Can delete email confirmation", "content_type": 8, "codename": "delete_emailconfirmation"}}, {"model": "auth.permission", "pk": 32, "fields": {"name": "Can view email confirmation", "content_type": 8, "codename": "view_emailconfirmation"}}, {"model": "auth.permission", "pk": 33, "fields": {"name": "Can add social account", "content_type": 9, "codename": "add_socialaccount"}}, {"model": "auth.permission", "pk": 34, "fields": {"name": "Can change social account", "content_type": 9, "codename": "change_socialaccount"}}, {"model": "auth.permission", "pk": 35, "fields": {"name": "Can delete social account", "content_type": 9, "codename": "delete_socialaccount"}}, {"model": "auth.permission", "pk": 36, "fields": {"name": "Can view social account", "content_type": 9, "codename": "view_socialaccount"}}, {"model": "auth.permission", "pk": 37, "fields": {"name": "Can add social application", "content_type": 10, "codename": "add_socialapp"}}, {"model": "auth.permission", "pk": 38, "fields": {"name": "Can change social application", "content_type": 10, "codename": "change_socialapp"}}, {"model": "auth.permission", "pk": 39, "fields": {"name": "Can delete social application", "content_type": 10, "codename": "delete_socialapp"}}, {"model": "auth.permission", "pk": 40, "fields": {"name": "Can view social application", "content_type": 10, "codename": "view_socialapp"}}, {"model": "auth.permission", "pk": 41, "fields": {"name": "Can add social application token", "content_type": 11, "codename": "add_socialtoken"}}, {"model": "auth.permission", "pk": 42, "fields": {"name": "Can change social application token", "content_type": 11, "codename": "change_socialtoken"}}, {"model": "auth.permission", "pk": 43, "fields": {"name": "Can delete social application token", "content_type": 11, "codename": "delete_socialtoken"}}, {"model": "auth.permission", "pk": 44, "fields": {"name": "Can view social application token", "content_type": 11, "codename": "view_socialtoken"}}, {"model": "auth.permission", "pk": 45, "fields": {"name": "Can add aviary", "content_type": 12, "codename": "add_aviary"}}, {"model": "auth.permission", "pk": 46, "fields": {"name": "Can change aviary", "content_type": 12, "codename": "change_aviary"}}, {"model": "auth.permission", "pk": 47, "fields": {"name": "Can delete aviary", "content_type": 12, "codename": "delete_aviary"}}, {"model": "auth.permission", "pk": 48, "fields": {"name": "Can view aviary", "content_type": 12, "codename": "view_aviary"}}, {"model": "auth.permission", "pk": 49, "fields": {"name": "Can add bird", "content_type": 13, "codename": "add_bird"}}, {"model": "auth.permission", "pk": 50, "fields": {"name": "Can change bird", "content_type": 13, "codename": "change_bird"}}, {"model": "auth.permission", "pk": 51, "fields": {"name": "Can delete bird", "content_type": 13, "codename": "delete_bird"}}, {"model": "auth.permission", "pk": 52, "fields": {"name": "Can view bird", "content_type": 13, "codename": "view_bird"}}, {"model": "auth.permission", "pk": 53, "fields": {"name": "Can add bird status", "content_type": 14, "codename": "add_birdstatus"}}, {"model": "auth.permission", "pk": 54, "fields": {"name": "Can change bird status", "content_type": 14, "codename": "change_birdstatus"}}, {"model": "auth.permission", "pk": 55, "fields": {"name": "Can delete bird status", "content_type": 14, "codename": "delete_birdstatus"}}, {"model": "auth.permission", "pk": 56, "fields": {"name": "Can view bird status", "content_type": 14, "codename": "view_birdstatus"}}, {"model": "auth.permission", "pk": 57, "fields": {"name": "Can add fallen bird", "content_type": 15, "codename": "add_fallenbird"}}, {"model": "auth.permission", "pk": 58, "fields": {"name": "Can change fallen bird", "content_type": 15, "codename": "change_fallenbird"}}, {"model": "auth.permission", "pk": 59, "fields": {"name": "Can delete fallen bird", "content_type": 15, "codename": "delete_fallenbird"}}, {"model": "auth.permission", "pk": 60, "fields": {"name": "Can view fallen bird", "content_type": 15, "codename": "view_fallenbird"}}, {"model": "auth.permission", "pk": 61, "fields": {"name": "Can add rescuer", "content_type": 16, "codename": "add_rescuer"}}, {"model": "auth.permission", "pk": 62, "fields": {"name": "Can change rescuer", "content_type": 16, "codename": "change_rescuer"}}, {"model": "auth.permission", "pk": 63, "fields": {"name": "Can delete rescuer", "content_type": 16, "codename": "delete_rescuer"}}, {"model": "auth.permission", "pk": 64, "fields": {"name": "Can view rescuer", "content_type": 16, "codename": "view_rescuer"}}, {"model": "auth.user", "pk": 1, "fields": {"password": "pbkdf2_sha256$600000$A1HrHg4ELPyuWGlcuGsROM$aR44S3dyrJOR9QL142fdHDNnqiT5JGi2DbM8KdQQslQ=", "last_login": "2023-06-28T20:58:48.699Z", "is_superuser": true, "username": "admin", "first_name": "", "last_name": "", "email": "admin@email.de", "is_staff": true, "is_active": true, "date_joined": "2023-06-28T20:58:17.710Z", "groups": [], "user_permissions": []}}, {"model": "contenttypes.contenttype", "pk": 1, "fields": {"app_label": "admin", "model": "logentry"}}, {"model": "contenttypes.contenttype", "pk": 2, "fields": {"app_label": "auth", "model": "permission"}}, {"model": "contenttypes.contenttype", "pk": 3, "fields": {"app_label": "auth", "model": "group"}}, {"model": "contenttypes.contenttype", "pk": 4, "fields": {"app_label": "auth", "model": "user"}}, {"model": "contenttypes.contenttype", "pk": 5, "fields": {"app_label": "contenttypes", "model": "contenttype"}}, {"model": "contenttypes.contenttype", "pk": 6, "fields": {"app_label": "sessions", "model": "session"}}, {"model": "contenttypes.contenttype", "pk": 7, "fields": {"app_label": "account", "model": "emailaddress"}}, {"model": "contenttypes.contenttype", "pk": 8, "fields": {"app_label": "account", "model": "emailconfirmation"}}, {"model": "contenttypes.contenttype", "pk": 9, "fields": {"app_label": "socialaccount", "model": "socialaccount"}}, {"model": "contenttypes.contenttype", "pk": 10, "fields": {"app_label": "socialaccount", "model": "socialapp"}}, {"model": "contenttypes.contenttype", "pk": 11, "fields": {"app_label": "socialaccount", "model": "socialtoken"}}, {"model": "contenttypes.contenttype", "pk": 12, "fields": {"app_label": "aviary", "model": "aviary"}}, {"model": "contenttypes.contenttype", "pk": 13, "fields": {"app_label": "bird", "model": "bird"}}, {"model": "contenttypes.contenttype", "pk": 14, "fields": {"app_label": "bird", "model": "birdstatus"}}, {"model": "contenttypes.contenttype", "pk": 15, "fields": {"app_label": "bird", "model": "fallenbird"}}, {"model": "contenttypes.contenttype", "pk": 16, "fields": {"app_label": "rescuer", "model": "rescuer"}}, {"model": "sessions.session", "pk": "ewokb41pg607lzmpit6n2ja9gdd6j7fh", "fields": {"session_data": ".eJxVjDsOwjAQRO_iGln4h21K-pzBWu9ucADZUpxUiLuTSCmgG817M2-RYF1KWjvPaSJxFUqcfrsM-OS6A3pAvTeJrS7zlOWuyIN2OTTi1-1w_w4K9LKtPWgwEUa0Y0BPqBHIgVEuZutZgYsh6BgNn6MLVmtgr2gLaDMBXpz4fAH1hTgL:1qEcFU:9jv0SzTIwjPsBgWr3_O-0txc-jr3mrhAIDuFUGmmpJQ", "expire_date": "2023-07-12T20:58:48.700Z"}}, {"model": "account.emailaddress", "pk": 1, "fields": {"user": 1, "email": "admin@email.de", "verified": true, "primary": true}}, {"model": "aviary.aviary", "pk": "3b478eae-c920-493c-b336-e75506759e63", "fields": {"description": "Voliere 2", "condition": "super", "last_ward_round": "2023-06-28"}}, {"model": "aviary.aviary", "pk": "8055f3fb-9b4b-4a1b-8144-8e30900b5071", "fields": {"description": "Voliere 1", "condition": "gut", "last_ward_round": "2023-06-28"}}, {"model": "bird.fallenbird", "pk": "310796ff-06b1-4ed2-b968-6f9ee3d84ae7", "fields": {"bird": "9a00beef-2d3b-4b7c-aeeb-21ae3702c250", "date_found": "2023-06-28", "place": "Am Planetarium 2", "created": "2023-06-28T21:00:03.841Z", "updated": "2023-06-28T21:05:50.531Z", "diagnostic_finding": "Gehirnerschütterung", "cost_sum_currency": "EUR", "cost_sum": "12.04", "rescuer": "fc2ff18b-b99a-497a-aaa3-b26e90317d35", "user": 1, "aviary": null, "status": "24343d7a-4bbb-4195-b710-6299e5eb4d6b"}}, {"model": "bird.bird", "pk": "1ae3ff6a-5364-41ce-9d67-51d400f709be", "fields": {"name": "Spatz"}}, {"model": "bird.bird", "pk": "9a00beef-2d3b-4b7c-aeeb-21ae3702c250", "fields": {"name": "Amsel"}}, {"model": "bird.birdstatus", "pk": "24343d7a-4bbb-4195-b710-6299e5eb4d6b", "fields": {"description": "In Behandlung"}}, {"model": "bird.birdstatus", "pk": "300d873a-bf3b-4c88-9d7f-4a15ff493caf", "fields": {"description": "Ausgewildert"}}, {"model": "bird.birdstatus", "pk": "a4796236-8b6a-4a75-9788-e4b1451ba692", "fields": {"description": "Verstorben"}}, {"model": "bird.birdstatus", "pk": "bc20ff01-8fc9-4192-b686-dab5100839bc", "fields": {"description": "In Auswilderung"}}, {"model": "rescuer.rescuer", "pk": "fc2ff18b-b99a-497a-aaa3-b26e90317d35", "fields": {"first_name": "Elmo", "last_name": "Piggy", "street": "Sesamstraße", "street_number": "22", "city": "Dreamworld", "zip_code": "08873", "email": "elmo@emal.de", "phone": "+49871623662", "user": 1}}] \ No newline at end of file diff --git a/rescuer/migrations/0001_initial.py b/rescuer/migrations/0001_initial.py index c3d0584..309b58f 100644 --- a/rescuer/migrations/0001_initial.py +++ b/rescuer/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.2 on 2023-06-28 20:12 +# Generated by Django 4.2.2 on 2023-06-28 20:31 from django.conf import settings from django.db import migrations, models