createt new tabel for tags
This commit is contained in:
parent
c056e6880f
commit
bdd286915d
14 changed files with 7 additions and 120 deletions
|
@ -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)
|
||||
|
|
|
@ -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--
|
|
@ -1,5 +0,0 @@
|
|||
Subject: test
|
||||
From: <test1@test>
|
||||
To: test2@test
|
||||
Message-ID: <1@test>
|
||||
|
|
@ -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
|
|
@ -1,6 +0,0 @@
|
|||
Subject: test
|
||||
From: test3@test
|
||||
To: test4@localhost
|
||||
Message-ID: <1@test>
|
||||
|
||||
test
|
|
@ -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?=
|
|
@ -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 äöü
|
|
@ -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--
|
|
@ -1,11 +0,0 @@
|
|||
Subject: test
|
||||
From: test1@test
|
||||
To: test2@test
|
||||
Message-ID: <1@test>
|
||||
Content-Type: text/html; charset=utf-8
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<p>test</p>
|
||||
</div>
|
||||
</div>
|
|
@ -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?=
|
|
@ -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=?=
|
|
@ -1,6 +0,0 @@
|
|||
Subject: test
|
||||
From: test1@test
|
||||
To: test_event@localhost
|
||||
Message-ID: <1@test>
|
||||
|
||||
test
|
|
@ -1,5 +0,0 @@
|
|||
From: noreply@test
|
||||
To: test2@test
|
||||
Message-ID: <1@test>
|
||||
|
||||
test
|
|
@ -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?=
|
Loading…
Add table
Reference in a new issue