aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/models.py
blob: 89392b20db7f956d4f8d1b8bbb1b42e954c287a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from django.db import models

class SubJournal(models.Model):
    name = models.CharField("full title"), blank=False,max_length=196)
    date = models.DateField("date started"), auto_now_add=True)
    slug = models.SlugField()
    description = models.TextField("description of content",blank=True)

class JournalCommon(models.Model):
    author = 
    date
    edit_date
    subjournal
    defunct
    private

    class Meta:
        abstract = True

class Entry():
    html_content
    title
    slug

class MicroEntry(models.Model):
    html_content
    text_content

class Artifact(models.Model)
    html_caption
    entry

    class Meta:
        abstract = True

class ImageArtifact(Artifact)
    original_file
    thumb_file
    pass

class VideoArtifact(Artifact)
    codec
    filepath
    external_url
    pass

class CodeArtifact(Artifact)
    code
    language
    pass

class LinkArtifact(Artifact)
    url
    pass