diff --git a/core/inventory/models.py b/core/inventory/models.py index 231094e..23f9c27 100644 --- a/core/inventory/models.py +++ b/core/inventory/models.py @@ -28,6 +28,7 @@ class Item(SoftDeleteModel): returned_at = models.DateTimeField(blank=True, null=True) created_at = models.DateTimeField(null=True, auto_now_add=True) updated_at = models.DateTimeField(blank=True, null=True) + tags = models.ManyToManyField('Tag') @property def container(self): @@ -98,6 +99,12 @@ class Comment(models.Model): def __str__(self): return str(self.item) + ' comment #' + str(self.id) +class Tag(models.Model): + slug = models.TextField() + + def __str__(self): + return self.slug + class Event(models.Model): id = models.AutoField(primary_key=True) diff --git a/core/mail-097f1cf1adf66ab1e18cb70b065e45914c084d52520436c74dab18d5055101cd b/core/mail-097f1cf1adf66ab1e18cb70b065e45914c084d52520436c74dab18d5055101cd deleted file mode 100644 index 178f379..0000000 --- a/core/mail-097f1cf1adf66ab1e18cb70b065e45914c084d52520436c74dab18d5055101cd +++ /dev/null @@ -1,26 +0,0 @@ -Subject: test -From: test1@test -To: test2@test -Message-ID: <1@test> -Content-Type: multipart/alternative; boundary="abc" - ---abc -Content-Type: text/plain; charset=utf-8 - -test1 - ---abc -Content-Type: image/jpeg; name="test.jpg" -Content-Disposition: inline; filename="test.jpg" -Content-Transfer-Encoding: base64 -Content-ID: <1> -X-Attachment-Id: 1 - -dGVzdGltYWdl - ---abc -Content-Type: text/plain; charset=utf-8 - -test2 - ---abc-- \ No newline at end of file diff --git a/core/mail-3254edd41df7e7f27bf80698b647a51a36ef62f226f33b3e51072fdb900390df b/core/mail-3254edd41df7e7f27bf80698b647a51a36ef62f226f33b3e51072fdb900390df deleted file mode 100644 index db97c0e..0000000 --- a/core/mail-3254edd41df7e7f27bf80698b647a51a36ef62f226f33b3e51072fdb900390df +++ /dev/null @@ -1,5 +0,0 @@ -Subject: test -From: -To: test2@test -Message-ID: <1@test> - diff --git a/core/mail-3b1343b8f18b2e991acf80395c1338a2fafee4df705c9584058eed0de16afb31 b/core/mail-3b1343b8f18b2e991acf80395c1338a2fafee4df705c9584058eed0de16afb31 deleted file mode 100644 index f420e58..0000000 --- a/core/mail-3b1343b8f18b2e991acf80395c1338a2fafee4df705c9584058eed0de16afb31 +++ /dev/null @@ -1,8 +0,0 @@ -Subject: test -From: test1@test -To: test2@test -Message-ID: <1@test> -Content-Type: text/html; charset=utf-8 -Content-Transfer-Encoding: quoted-printable - -hello =C3=A4=C3=B6=C3=BC \ No newline at end of file diff --git a/core/mail-42ee4087f0d74559768fe22003e82df5834974122a50fd5b5e24840acc74356d b/core/mail-42ee4087f0d74559768fe22003e82df5834974122a50fd5b5e24840acc74356d deleted file mode 100644 index 3bab076..0000000 --- a/core/mail-42ee4087f0d74559768fe22003e82df5834974122a50fd5b5e24840acc74356d +++ /dev/null @@ -1,6 +0,0 @@ -Subject: test -From: test3@test -To: test4@localhost -Message-ID: <1@test> - -test \ No newline at end of file diff --git a/core/mail-4cd6cf91c51b3d75b92d7d5e4334b1f7a24f587ca48ca72a0382f39c3c0be11b b/core/mail-4cd6cf91c51b3d75b92d7d5e4334b1f7a24f587ca48ca72a0382f39c3c0be11b deleted file mode 100644 index 49d4282..0000000 --- a/core/mail-4cd6cf91c51b3d75b92d7d5e4334b1f7a24f587ca48ca72a0382f39c3c0be11b +++ /dev/null @@ -1,6 +0,0 @@ -Subject: =?UTF-8?Q?suche_M=C3=BCtze?= -From: test3@test -To: test4@test -Message-ID: <1@test> - -Text mit Quoted-Printable-Kodierung: =?utf-8?Q?=C3=A4=C3=B6=C3=BC=C3=9F?= \ No newline at end of file diff --git a/core/mail-5c35987b7a827fed89a3d65142b95ab90452fdd563bf4647fee7d3d215032307 b/core/mail-5c35987b7a827fed89a3d65142b95ab90452fdd563bf4647fee7d3d215032307 deleted file mode 100644 index 8595b27..0000000 --- a/core/mail-5c35987b7a827fed89a3d65142b95ab90452fdd563bf4647fee7d3d215032307 +++ /dev/null @@ -1,7 +0,0 @@ -Subject: test -From: test1@test -To: test2@test -Message-ID: <1@test> -Content-Type: text/html; charset=iso-8859-1 - -hello äöü \ No newline at end of file diff --git a/core/mail-723cc57085d5747cddd1c2f5bcdcf4b81cc3c215fb255805b938fc08a1603157 b/core/mail-723cc57085d5747cddd1c2f5bcdcf4b81cc3c215fb255805b938fc08a1603157 deleted file mode 100644 index a0a4a77..0000000 --- a/core/mail-723cc57085d5747cddd1c2f5bcdcf4b81cc3c215fb255805b938fc08a1603157 +++ /dev/null @@ -1,21 +0,0 @@ -Subject: test -From: test1@test -To: test2@test -Message-ID: <1@test> -Content-Type: multipart/mixed; boundary="abc" - ---abc -Content-Type: text/plain; charset=utf-8 - -test1 - ---abc -Content-Type: image/jpeg; name="test.jpg" -Content-Disposition: attachment; filename="test.jpg" -Content-Transfer-Encoding: base64 -Content-ID: <1> -X-Attachment-Id: 1 - -dGVzdGltYWdl - ---abc-- \ No newline at end of file diff --git a/core/mail-73be0be950bbfdabdcbd7d5298d9133ba285ea99c7e86e172c18bfae1efe6e18 b/core/mail-73be0be950bbfdabdcbd7d5298d9133ba285ea99c7e86e172c18bfae1efe6e18 deleted file mode 100644 index 43fd8c6..0000000 --- a/core/mail-73be0be950bbfdabdcbd7d5298d9133ba285ea99c7e86e172c18bfae1efe6e18 +++ /dev/null @@ -1,11 +0,0 @@ -Subject: test -From: test1@test -To: test2@test -Message-ID: <1@test> -Content-Type: text/html; charset=utf-8 - -
-
-

test

-
-
\ No newline at end of file diff --git a/core/mail-9d5401a2107e1cbc42d75dae9eff4e24772415b41d5ff6daf5c79c97e398225a b/core/mail-9d5401a2107e1cbc42d75dae9eff4e24772415b41d5ff6daf5c79c97e398225a deleted file mode 100644 index 527711e..0000000 --- a/core/mail-9d5401a2107e1cbc42d75dae9eff4e24772415b41d5ff6daf5c79c97e398225a +++ /dev/null @@ -1,6 +0,0 @@ -Subject: test =?utf-8?Q?=C3=A4?= -From: test3@test -To: test4@test -Message-ID: <1@test> - -Text mit Quoted-Printable-Kodierung: =?utf-8?Q?=C3=A4=C3=B6=C3=BC=C3=9F?= \ No newline at end of file diff --git a/core/mail-a1bdb097374b6062732207f4a87fd41c9bb3d1c230a722bfc4c07f9c8ca68713 b/core/mail-a1bdb097374b6062732207f4a87fd41c9bb3d1c230a722bfc4c07f9c8ca68713 deleted file mode 100644 index 479de32..0000000 --- a/core/mail-a1bdb097374b6062732207f4a87fd41c9bb3d1c230a722bfc4c07f9c8ca68713 +++ /dev/null @@ -1,6 +0,0 @@ -Subject: =?utf-8?B?dGVzdA==?= -From: test3@test -To: test4@test -Message-ID: <1@test> - -Text mit Base64-Kodierung: =?utf-8?B?w6TDtsO8w58=?= \ No newline at end of file diff --git a/core/mail-a75fd27ca0fb10aeae58c7c28dce16f1413fd846b7ccafed99e6c065bbbc3bee b/core/mail-a75fd27ca0fb10aeae58c7c28dce16f1413fd846b7ccafed99e6c065bbbc3bee deleted file mode 100644 index 7376c2b..0000000 --- a/core/mail-a75fd27ca0fb10aeae58c7c28dce16f1413fd846b7ccafed99e6c065bbbc3bee +++ /dev/null @@ -1,6 +0,0 @@ -Subject: test -From: test1@test -To: test_event@localhost -Message-ID: <1@test> - -test \ No newline at end of file diff --git a/core/mail-c5c0aacdf241ebcd654f3b41a6ffc04c38fccd675c0d3c8bee3c9745773eb143 b/core/mail-c5c0aacdf241ebcd654f3b41a6ffc04c38fccd675c0d3c8bee3c9745773eb143 deleted file mode 100644 index f55a430..0000000 --- a/core/mail-c5c0aacdf241ebcd654f3b41a6ffc04c38fccd675c0d3c8bee3c9745773eb143 +++ /dev/null @@ -1,5 +0,0 @@ -From: noreply@test -To: test2@test -Message-ID: <1@test> - -test \ No newline at end of file diff --git a/core/mail-d35ad18b5ce7ed9c2153dccf2a76218833082af12eddaf0a3a0acf5fc719e847 b/core/mail-d35ad18b5ce7ed9c2153dccf2a76218833082af12eddaf0a3a0acf5fc719e847 deleted file mode 100644 index 2c2057a..0000000 --- a/core/mail-d35ad18b5ce7ed9c2153dccf2a76218833082af12eddaf0a3a0acf5fc719e847 +++ /dev/null @@ -1,7 +0,0 @@ -Subject: test -From: test1@test -To: test2@test -Message-ID: <1@test> -Content-Type: text/html; charset=utf-8 - -thank you =?utf-8?Q?=F0=9F=98=8A?= \ No newline at end of file