django-cards 0.11.1__tar.gz → 0.11.2__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. {django-cards-0.11.1/django_cards.egg-info → django-cards-0.11.2}/PKG-INFO +1 -1
  2. {django-cards-0.11.1 → django-cards-0.11.2}/cards/base.py +4 -3
  3. {django-cards-0.11.1 → django-cards-0.11.2/django_cards.egg-info}/PKG-INFO +1 -1
  4. {django-cards-0.11.1 → django-cards-0.11.2}/setup.py +1 -1
  5. {django-cards-0.11.1 → django-cards-0.11.2}/LICENSE +0 -0
  6. {django-cards-0.11.1 → django-cards-0.11.2}/MANIFEST.in +0 -0
  7. {django-cards-0.11.1 → django-cards-0.11.2}/README.md +0 -0
  8. {django-cards-0.11.1 → django-cards-0.11.2}/cards/__init__.py +0 -0
  9. {django-cards-0.11.1 → django-cards-0.11.2}/cards/apps.py +0 -0
  10. {django-cards-0.11.1 → django-cards-0.11.2}/cards/card_list/__init__.py +0 -0
  11. {django-cards-0.11.1 → django-cards-0.11.2}/cards/card_list/base.py +0 -0
  12. {django-cards-0.11.1 → django-cards-0.11.2}/cards/card_list/main.py +0 -0
  13. {django-cards-0.11.1 → django-cards-0.11.2}/cards/card_list/tree.py +0 -0
  14. {django-cards-0.11.1 → django-cards-0.11.2}/cards/includes.py +0 -0
  15. {django-cards-0.11.1 → django-cards-0.11.2}/cards/standard.py +0 -0
  16. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default/32px.png +0 -0
  17. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default/40px.png +0 -0
  18. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default/style.css +0 -0
  19. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default/style.min.css +0 -0
  20. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default/throbber.gif +0 -0
  21. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default-dark/32px.png +0 -0
  22. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default-dark/40px.png +0 -0
  23. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default-dark/style.css +0 -0
  24. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default-dark/style.min.css +0 -0
  25. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/default-dark/throbber.gif +0 -0
  26. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/30px.png +0 -0
  27. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/32px.png +0 -0
  28. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.eot +0 -0
  29. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.svg +0 -0
  30. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.ttf +0 -0
  31. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.woff +0 -0
  32. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.eot +0 -0
  33. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.svg +0 -0
  34. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.ttf +0 -0
  35. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.woff +0 -0
  36. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.eot +0 -0
  37. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.svg +0 -0
  38. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.ttf +0 -0
  39. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.woff +0 -0
  40. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/style.css +0 -0
  41. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/style.min.css +0 -0
  42. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/css/themes/proton/throbber.gif +0 -0
  43. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/js/jstree.js +0 -0
  44. {django-cards-0.11.1 → django-cards-0.11.2}/cards/static/cards/jstree/js/jstree.min.js +0 -0
  45. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/groups/groups.html +0 -0
  46. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/blank.html +0 -0
  47. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/card_group.html +0 -0
  48. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/datatable.html +0 -0
  49. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/default.html +0 -0
  50. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/default_body.html +0 -0
  51. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/html.html +0 -0
  52. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/list_selection.html +0 -0
  53. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/message.html +0 -0
  54. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/table.html +0 -0
  55. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/table_body.html +0 -0
  56. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templates/cards/standard/tree_selection.html +0 -0
  57. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templatetags/__init__.py +0 -0
  58. {django-cards-0.11.1 → django-cards-0.11.2}/cards/templatetags/django_cards_tags.py +0 -0
  59. {django-cards-0.11.1 → django-cards-0.11.2}/cards/url_converters.py +0 -0
  60. {django-cards-0.11.1 → django-cards-0.11.2}/django_cards.egg-info/SOURCES.txt +0 -0
  61. {django-cards-0.11.1 → django-cards-0.11.2}/django_cards.egg-info/dependency_links.txt +0 -0
  62. {django-cards-0.11.1 → django-cards-0.11.2}/django_cards.egg-info/top_level.txt +0 -0
  63. {django-cards-0.11.1 → django-cards-0.11.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-cards
3
- Version: 0.11.1
3
+ Version: 0.11.2
4
4
  Summary: Django app that allows you make cards
5
5
  Home-page: https://github.com/django-advance-utils/django-cards
6
6
  Author: Thomas Turner
@@ -1,5 +1,6 @@
1
1
  import datetime
2
2
  import json
3
+ from collections import defaultdict
3
4
 
4
5
  from ajax_helpers.utils import random_string
5
6
  from django.core.exceptions import FieldDoesNotExist
@@ -410,11 +411,11 @@ class CardBase:
410
411
 
411
412
  value_dict = {'value': value,
412
413
  'label': label,
413
- 'menu': menu,
414
414
  'link': link,
415
415
  **kwargs}
416
-
417
- row_style_html = html_row_style.format(**value_dict)
416
+ if menu is not None:
417
+ value_dict['menu'] = menu.render()
418
+ row_style_html = html_row_style.format_map(defaultdict(lambda: '', value_dict))
418
419
 
419
420
  entry = {'label': label,
420
421
  'html': value,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-cards
3
- Version: 0.11.1
3
+ Version: 0.11.2
4
4
  Summary: Django app that allows you make cards
5
5
  Home-page: https://github.com/django-advance-utils/django-cards
6
6
  Author: Thomas Turner
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="django-cards",
8
- version="0.11.1",
8
+ version="0.11.2",
9
9
  author="Thomas Turner",
10
10
  description="Django app that allows you make cards",
11
11
  long_description=long_description,
File without changes
File without changes
File without changes
File without changes