Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Commit

Permalink
Remove model property from context and query
Browse files Browse the repository at this point in the history
This will require a subsequent change in Serrano

Signed-off-by: Don Naegely <naegelyd@gmail.com>
  • Loading branch information
naegelyd committed Oct 17, 2014
1 parent a1a60f2 commit 73dd0cc
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions avocado/query/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import jsonfield
from django.db import models
from modeltree.tree import trees
from avocado.core.cache import cached_method
from . import oldparsers as parsers

Expand Down Expand Up @@ -57,13 +56,6 @@ def __and__(self, other):
def __or__(self, other):
return self._combine(other, 'or')

@property
def model(self):
"The model this context represents with respect to the count."
if self.tree in trees:
return trees[self.tree].root_model
return trees.default.root_model

@classmethod
def validate(cls, attrs, **context):
"Validate `attrs` as a context."
Expand Down Expand Up @@ -192,13 +184,6 @@ def json(self):
'view': self.view_json
}

@property
def model(self):
"The model this query represents with respect to the counts."
if self.tree in trees:
return trees[self.tree].root_model
return trees.default.root_model

@classmethod
def validate(cls, attrs, **context):
"Validates `attrs` as a query."
Expand Down

0 comments on commit 73dd0cc

Please sign in to comment.