~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wiki/models.py

  • Committer: Holger Rapp
  • Date: 2009-03-01 20:47:48 UTC
  • Revision ID: sirver@kallisto.local-20090301204748-h3ouqkp8zhv10ydq
First (working) commit of wlimages app, the app that will handle image uploading and managing. Uploading works now; images can only be uploaded once (with the same filename). Much stil missing. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
from tagging.fields import TagField
16
16
from tagging.models import Tag
17
17
 
18
 
from images.models import Image
 
18
# from wlimages.models import Image
19
19
 
20
20
try:
21
21
    from notification import models as notification
63
63
    object_id = models.PositiveIntegerField(null=True)
64
64
    group = generic.GenericForeignKey('content_type', 'object_id')
65
65
 
66
 
    images = generic.GenericRelation(Image)
 
66
    # images = generic.GenericRelation(Image)
67
67
 
68
68
    tags = TagField()
69
69