def __unicode__(self):
return u'"%s": %s' % (self.key, self.value)
+
+ class Meta:
+ app_label = 'philo'
class Relationship(models.Model):
def __unicode__(self):
return u'"%s": %s' % (self.key, self.value)
+
+ class Meta:
+ app_label = 'philo'
class QuerySetMapper(object, DictMixin):
class Meta:
abstract = True
+ app_label = 'philo'
class Collection(models.Model):
def __unicode__(self):
return self.name
+
+ class Meta:
+ app_label = 'philo'
class CollectionMemberManager(models.Manager):
def __unicode__(self):
return u'%s - %s' % (self.collection, self.member)
+
+ class Meta:
+ app_label = 'philo'
class TreeManager(models.Manager):
class Meta:
abstract = True
+ app_label = 'philo'
class TreeEntity(TreeModel, Entity):
class Meta:
abstract = True
+ app_label = 'philo'
class InheritableTreeEntity(TreeEntity):
class Meta:
abstract = True
+ app_label = 'philo'
class Node(InheritableTreeEntity):
class Meta:
unique_together = (('parent', 'slug'),)
+ app_label = 'philo'
class MultiNode(Node):
class Meta:
abstract = True
+ app_label = 'philo'
class Redirect(Node):
response = HttpResponseRedirect(self.target)
response.status_code = self.status_code
return response
+
+ class Meta:
+ app_label = 'philo'
class File(Node):
response = HttpResponse(wrapper, content_type=self.mimetype)
response['Content-Length'] = self.file.size
return response
+
+ class Meta:
+ app_label = 'philo'
class Template(TreeModel):
except Template.DoesNotExist:
raise TemplateDoesNotExist(template_name)
return (template.code, template.origin)
+
+ class Meta:
+ app_label = 'philo'
class Page(Node):
def __unicode__(self):
return self.get_path(u' › ', 'title')
+
+ class Meta:
+ app_label = 'philo'
# the following line enables the selection of a node as the root for a given django.contrib.sites Site object
def __unicode__(self):
return self.name
+
+ class Meta:
+ app_label = 'philo'
class ContentReference(models.Model):
def __unicode__(self):
return self.name
+
+ class Meta:
+ app_label = 'philo'
register_templatetags('philo.templatetags.containers')