kmike / django-faves
This app lets users favorite objects in your database (as well as unfavorite them). Original author is jeffrey.a.croft.
Clone this repository (size: 72.8 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/kmike/django-faves/
| commit 76: | 5a04d06d90d2 |
| parent 75: | 6bed5d6b8cec |
| branch: | trunk |
Fix bug in has_faved filter: do not return True for withdrawn records.
- View kmike's profile
-
kmike's public repos »
- django-contact-form-i18n-ru
- pymorphy
- django-composition
- django-filebrowser
- django-grappelli
- django-robokassa
- GearsUploader
- django-yandex-maps
- django-generic-images
- django-photo-albums
- django-view-cache-utils
- django-sociable
- django-faves
- django-autoslug
- django-contact-form-i18n
- django-coverage
- django-simplepagination
- django-orm-cache
- django-assist-ru
- Send message
9 months ago
Changed (Δ17 bytes):
raw changeset »
faves/templatetags/faves.py (1 lines added, 1 lines removed)
| … | … | @@ -23,7 +23,7 @@ def has_faved(value, arg): |
23 |
23 |
user = value |
24 |
24 |
object = arg |
25 |
25 |
try: |
26 |
fave = Fave.objects.get_for_model(object).get(user=user, object_id=object.id |
|
26 |
fave = Fave.objects.get_for_model(object).get(user=user, object_id=object.id, withdrawn=False) |
|
27 |
27 |
except Fave.DoesNotExist: |
28 |
28 |
return False |
29 |
29 |
