Skip to content

Commit

Permalink
fixed apply collection argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Silva committed Apr 1, 2016
1 parent bedeab5 commit 48a0f68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/budy/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ def simple_csv_url(cls, absolute = False):
@appier.operation(
name = "Apply Collection",
parameters = (
("Collection", "collection", "str"),
("Collection", "_collection", str),
)
)
def apply_collection_s(self, collection):
def apply_collection_s(self, _collection):
from . import collection
collection = collection.Collection.get(name = collection)
collection = collection.Collection.get(name = _collection)
self.collections.append(collection)
self.save()

Expand Down

0 comments on commit 48a0f68

Please sign in to comment.