Skip to content

Commit

Permalink
BOM-2214 : Remove python_2_unicode_compatible decorator (#133)
Browse files Browse the repository at this point in the history
* Remove python_2_unicode_compatible decorator
  • Loading branch information
M. Zulqarnain authored Jan 13, 2021
1 parent e05abac commit 179f947
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion submissions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" API for creating submissions and scores. """
__version__ = '3.2.3'
__version__ = '3.2.4'
5 changes: 0 additions & 5 deletions submissions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from django.db import DatabaseError, models
from django.db.models.signals import post_save, pre_save
from django.dispatch import Signal, receiver
from django.utils.encoding import python_2_unicode_compatible
from django.utils.timezone import now
from jsonfield import JSONField
from model_utils.models import TimeStampedModel
Expand Down Expand Up @@ -57,7 +56,6 @@ def deconstruct(self):
return name, path, args, kwargs


@python_2_unicode_compatible
class StudentItem(models.Model):
"""Represents a single item for a single course for a single user.
Expand Down Expand Up @@ -125,7 +123,6 @@ def from_db_value(self, value, expression, connection): # pylint: disable=argum
)


@python_2_unicode_compatible
class TeamSubmission(TimeStampedModel):
"""
A single response by a team for a given problem (ORA2) in a given course.
Expand Down Expand Up @@ -310,7 +307,6 @@ def validate_only_one_submission_per_team(sender, **kwargs):
raise DuplicateTeamSubmissionsError('Can only have one submission per team.')


@python_2_unicode_compatible
class Submission(models.Model):
"""A single response by a student for a given problem in a given course.
Expand Down Expand Up @@ -386,7 +382,6 @@ class Meta:
ordering = ["-submitted_at", "-id"]


@python_2_unicode_compatible
class Score(models.Model):
"""What the user scored for a given StudentItem at a given time.
Expand Down

0 comments on commit 179f947

Please sign in to comment.