diff options
Diffstat (limited to 'archaeological_finds/models_finds.py')
| -rw-r--r-- | archaeological_finds/models_finds.py | 12 | 
1 files changed, 2 insertions, 10 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 0c9770186..75ea69ac1 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -580,7 +580,8 @@ WEIGHT_UNIT = (('g', _(u"g")),                 ('kg', _(u"kg")),) -class FindBasket(Basket, OwnPerms): +class FindBasket(Basket): +    SHOW_URL = 'show-findbasket'      items = models.ManyToManyField('Find', blank=True, related_name='basket')      class Meta: @@ -589,15 +590,6 @@ class FindBasket(Basket, OwnPerms):              ("view_own_find", u"Can view own Find"),          ) -    @classmethod -    def get_query_owns(cls, ishtaruser): -        return Q(user=ishtaruser) | Q(shared_with=ishtaruser) | Q( -            shared_write_with=ishtaruser) - -    @classmethod -    def get_write_query_owns(cls, ishtaruser): -        return Q(user=ishtaruser) -      def get_extra_actions(self, request):          """          For sheet template: return "Manage basket" action  | 
