From 5d9d6832f422b84d32349f122470f17eb5b9ac08 Mon Sep 17 00:00:00 2001 From: Nils Rokita <0rokita@informatik.uni-hamburg.de> Date: Thu, 26 Dec 2019 17:02:41 +0100 Subject: [PATCH] fix bug in get method, bump version --- django_token_bucket/models.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django_token_bucket/models.py b/django_token_bucket/models.py index a940653..2b24d7e 100644 --- a/django_token_bucket/models.py +++ b/django_token_bucket/models.py @@ -100,7 +100,7 @@ def get(cls, identifier, ref_object, max_tokens, fill_rate, whatfor=None): ) except cls.DoesNotExist: bucket = cls(identifier=identifier, - user=ref_object, + foreign_object=ref_object, max_tokens=max_tokens, fill_rate=fill_rate, tokens=max_tokens, diff --git a/setup.py b/setup.py index 4555920..d5a79d3 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages -version = '0.2.dev1' +version = '0.2' def read(*parts):