Skip to content

Commit

Permalink
Releasing 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonb committed Jul 20, 2022
1 parent 2ec6611 commit c5d5646
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ Waffle Changelog
================


v2.6.0
======
- Fixed Django 4.0 compatibility
- Added support for custom Sample and Switch models
- Added ability to determine if flag is active without persisting new state
- Added support for Python 3.10

v2.5.0
======
- Corrected error in docs
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '2.5'
version = '2.6'
# The full version, including alpha/beta/rc tags.
release = '2.5.0'
release = '2.6.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='django-waffle',
version='2.5.0',
version='2.6.0',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
Expand Down
3 changes: 2 additions & 1 deletion waffle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from waffle.utils import get_setting
from django.apps import apps as django_apps

VERSION = (2, 5, 0)
VERSION = (2, 6, 0)
__version__ = '.'.join(map(str, VERSION))

if django.VERSION < (3, 2):
Expand All @@ -29,6 +29,7 @@ def sample_is_active(sample_name):
def get_waffle_flag_model():
return get_waffle_model('FLAG_MODEL')


def get_waffle_model(setting_name):
"""
Returns the waffle Flag model that is active in this project.
Expand Down

0 comments on commit c5d5646

Please sign in to comment.