Skip to content

Commit

Permalink
bump version to 1.1.1
Browse files Browse the repository at this point in the history
Fix #15
  • Loading branch information
razisayyed committed Mar 19, 2020
1 parent 80b2897 commit f1ed0b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ use ``get_ads_count`` in your template to check if any zone has active ads.
Changelog:
----------
1.1.1 (2020-03-20):
- remove @python_2_unicode_compatible (removed in Django 3.0)
1.1.0 (2019-07-28):
- get_ads_count template tag added.
Expand Down
2 changes: 1 addition & 1 deletion ads/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
default_app_config = 'ads.apps.AdsConfig'

__version__ = '1.1.0'
__version__ = '1.1.1'
8 changes: 1 addition & 7 deletions ads/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible, force_text
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _

from ads.conf import settings
from ads.managers import AdManager


@python_2_unicode_compatible
class Advertiser(models.Model):
""" A Model for our Advertiser. """
company_name = models.CharField(
Expand All @@ -33,7 +32,6 @@ def get_website_url(self):
return self.website


@python_2_unicode_compatible
class Category(models.Model):
""" a Model to hold the different Categories for adverts """
title = models.CharField(
Expand All @@ -57,7 +55,6 @@ def now_plus_1_day():
return timezone.now() + timezone.timedelta(days=1)


@python_2_unicode_compatible
class Ad(models.Model):
"""
This is our base model, from which all ads will inherit.
Expand Down Expand Up @@ -111,7 +108,6 @@ def get_absolute_url(self):
'pk': self.id})


@python_2_unicode_compatible
class AdImage(models.Model):
ad = models.ForeignKey(
Ad, on_delete=models.CASCADE, verbose_name=_('Ad'),
Expand All @@ -131,7 +127,6 @@ def __str__(self):
return self.get_device_display()


@python_2_unicode_compatible
class Impression(models.Model):
"""
The AdImpression Model will record every time the ad is loaded on a page
Expand All @@ -158,7 +153,6 @@ def __str__(self):
return force_text(self.ad)


@python_2_unicode_compatible
class Click(models.Model):
"""
The AdClick model will record every click that a add gets
Expand Down

0 comments on commit f1ed0b7

Please sign in to comment.