- Ensure compatibility with Django 2.1.
- Drop support for Python 3.4.
- Fixed error when generating qr code from lazy text (#1)
- BREAKING CHANGES:
- QR code options have been factorized and now use the
QRCodeOptions
class. - The context for rendering a QR code encoding a Wi-Fi configuration uses the dedicated
WifiConfig
class. - The context for rendering a QR code encoding a contact detail uses the dedicated
ContactDetail
class. qr_for_contact
andqr_url_for_contact
keyword arg has been renamed fromcontact_dict
tocontact_detail
.qr_for_wifi
andqr_url_for_wifi
keyword arg has been renamed fromwifi_dict
towifi_config
.- Reorganize code and split qr_code.py into several modules.
- QR code options have been factorized and now use the
The changes mentioned above might break the compatibility with code using qr_code.py's API directly, but template tags are not impacted, except for qr_for_contact
, qr_url_for_contact
, qr_for_wifi
, and qr_url_for_wifi
if they were using a keyword argument.
- Other changes:
- Added support for
error_correction
parameter when generating a QR code. - Added support for
coordinates
keyword argument toqr_for_geolocation
,qr_for_google_maps
,qr_url_for_geolocation
, andqr_url_for_google_maps
. - Additions to documentation.
- Added ability to use a
QRCodeOptions
instance withoptions
keyword argument in all tags.
- Added support for
- Bug fixes:
- Fixed unescaped chars when generating QR code for a contact.
- Simplify handling of default values for QR code options.
- Added documentation about what a QR code can encode.
- Added support for multiple new tags:
qr_for_email
andqr_url_for_email
qr_for_tel
andqr_url_for_tel
qr_for_sms
andqr_url_for_sms
qr_for_geolocation
andqr_url_for_geolocation
qr_for_google_maps
andqr_url_for_google_maps
qr_for_youtube
andqr_url_for_youtube
qr_for_google_play
andqr_url_for_google_play
qr_for_contact
andqr_url_for_contact
qr_for_wifi
andqr_url_for_wifi
- Reformat documentation on the demo site for better readability.
- Drop support for Django <1.11.
- Added
app_name
namespace toqr_code.urls
(better compatibility withinclude()
function provided with Django >= 1.9). - Update documentation regarding the inclusion of
qr_code.urls
for distinct versions of Django. - Minor improvements to the documentation.
- Allows optional installation of Pillow (PNG format unavailable, fallback to SVG).
- Fixed caching of images (not working due protection against external queries).
- Fixed conditional view processing (HTTP 304) for rendered QR codes (not working due protection against external queries).
- Added a mention about Pillow library requirement in documentation.
- Minor improvements to the documentation and the demo application.
- Added new tag qr_url_from_text:
- Separate image from the page displaying the image
- Handle caching of images
- Conditional view processing (HTTP 304) for rendered QR codes
- Protection against external requests
- Settings to configure URLs accesses as a service for generating QR code images
- Added documentation for new features
- Added tests for new features
- Added examples to demo site
- More robust testing of make_embedded_qr_code's arguments.
- Improved documentation.
- Demo site is compatible with Django 1.8.
- Added support for Docker Compose for running the demo application and running the tests.
- Added support for Django 1.8.
- Fixed version specifiers for Django requirement so that it wont force the installation of Django 1.11.
- Added badges for PyPi, Read the Docs and Travis CI to readme file.
- Several additions to the documentation.
- Added support for PNG image format via an
img
tag. - Added documentation for users and developers.
- Improved examples in demo app.
First public release.