diff options
author | bnewbold <bnewbold@eta.mit.edu> | 2009-01-25 13:05:25 -0500 |
---|---|---|
committer | bnewbold <bnewbold@eta.mit.edu> | 2009-01-25 13:05:25 -0500 |
commit | 75bc6a976f98e36a9426e6115d3f628a8fa73762 (patch) | |
tree | abf42e0d4b94146506e0208a08afe8758eb11a93 /bn_django/journal/models.py | |
parent | 296dc07f010d8692028db682d02ef3e88e525f01 (diff) | |
download | bnewnet-75bc6a976f98e36a9426e6115d3f628a8fa73762.tar.gz bnewnet-75bc6a976f98e36a9426e6115d3f628a8fa73762.zip |
whew artifact stuff, all basic style
Diffstat (limited to 'bn_django/journal/models.py')
-rw-r--r-- | bn_django/journal/models.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bn_django/journal/models.py b/bn_django/journal/models.py index 8836122..d296f1f 100644 --- a/bn_django/journal/models.py +++ b/bn_django/journal/models.py @@ -40,9 +40,9 @@ class MicroEntry(JournalCommon): text_content = models.TextField("text version of content", blank=True,null=True) class Artifact(JournalCommon): - html_caption = models.TextField("html format caption", blank=False) - text_caption = models.TextField("text format caption", blank=True,null=True) - entry = models.ForeignKey(Entry, blank=True) + html_caption = models.TextField("html format caption", blank=True) + text_caption = models.TextField("text format caption", blank=True) + entry = models.ForeignKey(Entry, blank=True, null=True) title = models.CharField("title of the artifact", max_length=256, blank=True) class Meta: @@ -59,12 +59,11 @@ class CodeArtifact(Artifact): blank=True) class LinkArtifact(Artifact): - url = models.URLField("external link to something wonderful!", blank=True) + url = models.URLField("external link to something wonderful!",verify_exists=False) class ImageArtifact(Artifact,Photo): """Multiply inherets from the photo app """ - pass def build_display_images(sender, instance, signal, *args, **kwargs): """Simple hook for save-after trigger @@ -83,7 +82,6 @@ from django.contrib import admin admin.site.register(Entry) admin.site.register(MicroEntry) admin.site.register(SubJournal) -admin.site.register(Artifact) admin.site.register(LinkArtifact) admin.site.register(CodeArtifact) admin.site.register(VideoArtifact) |