Skip to content

Commit 79df273

Browse files
committed
Remove python_2_unicode_compatible from django models
1 parent 49af450 commit 79df273

File tree

4 files changed

+0
-24
lines changed

4 files changed

+0
-24
lines changed

junction/conferences/models.py

-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from django.core.exceptions import ValidationError
66
from django.core.urlresolvers import reverse
77
from django.db import models
8-
from django.utils.encoding import python_2_unicode_compatible
98
from django.utils.timezone import now
109
from django.utils.translation import ugettext as _
1110
from django_extensions.db.fields import AutoSlugField
@@ -18,7 +17,6 @@
1817
from junction.base.utils import get_date_diff_display
1918

2019

21-
@python_2_unicode_compatible
2220
class Conference(AuditModel):
2321

2422
""" Conference/Event master """
@@ -122,7 +120,6 @@ def is_accepting_proposals(self):
122120
return self.proposal_types.filter(end_date__gt=now()).exists()
123121

124122

125-
@python_2_unicode_compatible
126123
class ConferenceModerator(AuditModel):
127124

128125
""" List of Conference Moderators/Administrators """
@@ -142,7 +139,6 @@ def __str__(self):
142139
return "{}[{}]".format(self.moderator.get_full_name(), self.conference)
143140

144141

145-
@python_2_unicode_compatible
146142
class ConferenceProposalReviewer(AuditModel):
147143

148144
""" List of global proposal reviewers """
@@ -166,7 +162,6 @@ def __str__(self):
166162
return "{} - {}".format(self.conference, self.reviewer.username)
167163

168164

169-
@python_2_unicode_compatible
170165
class ConferenceVenue(AuditModel):
171166
name = models.CharField(max_length=100)
172167

@@ -189,7 +184,6 @@ def __str__(self):
189184
return "{}, {}".format(self.name, self.venue)
190185

191186

192-
@python_2_unicode_compatible
193187
class ConferenceSetting(AuditModel):
194188
conference = models.ForeignKey(Conference, on_delete=models.CASCADE)
195189
name = models.CharField(max_length=100, db_index=True)

junction/feedback/models.py

-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import absolute_import, unicode_literals
44

55
from django.db import models
6-
from django.utils.encoding import python_2_unicode_compatible
76

87
from junction.base.models import TimeAuditModel
98
from junction.conferences.models import Conference
@@ -20,7 +19,6 @@ class Meta:
2019
abstract = True
2120

2221

23-
@python_2_unicode_compatible
2422
class TextFeedbackQuestion(BaseSessionQuestionMixin, TimeAuditModel):
2523
"""Store details about text feedback type information.
2624
"""
@@ -42,7 +40,6 @@ def to_response(self):
4240
}
4341

4442

45-
@python_2_unicode_compatible
4643
class ChoiceFeedbackQuestion(BaseSessionQuestionMixin, TimeAuditModel):
4744
"""Store details about text feedback type information.
4845
"""
@@ -69,7 +66,6 @@ def to_response(self):
6966
}
7067

7168

72-
@python_2_unicode_compatible
7369
class ChoiceFeedbackQuestionValue(TimeAuditModel):
7470
"""Store allowed values for each choice based question
7571
"""
@@ -86,7 +82,6 @@ def __str__(self):
8682
)
8783

8884

89-
@python_2_unicode_compatible
9085
class ScheduleItemTextFeedback(TimeAuditModel):
9186
schedule_item = models.ForeignKey(
9287
ScheduleItem, db_index=True, on_delete=models.CASCADE
@@ -106,7 +101,6 @@ def __str__(self):
106101
)
107102

108103

109-
@python_2_unicode_compatible
110104
class ScheduleItemChoiceFeedback(TimeAuditModel):
111105
schedule_item = models.ForeignKey(ScheduleItem, on_delete=models.CASCADE)
112106
question = models.ForeignKey(ChoiceFeedbackQuestion, on_delete=models.CASCADE)

junction/proposals/models.py

-10
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from django.core.urlresolvers import reverse
88
from django.db import models
99
from django.template.defaultfilters import slugify
10-
from django.utils.encoding import python_2_unicode_compatible
1110
from django_extensions.db.fields import AutoSlugField
1211
from hashids import Hashids
1312
from rest_framework.reverse import reverse as rf_reverse
@@ -26,7 +25,6 @@
2625
from junction.conferences.models import Conference, ConferenceProposalReviewer
2726

2827

29-
@python_2_unicode_compatible
3028
class ProposalSection(AuditModel):
3129

3230
""" List of Proposal Sections"""
@@ -42,7 +40,6 @@ def __str__(self):
4240
return self.name
4341

4442

45-
@python_2_unicode_compatible
4643
class ProposalSectionReviewer(AuditModel):
4744

4845
""" List of Proposal Section Reviewers"""
@@ -61,7 +58,6 @@ def __str__(self):
6158
return "{}:[{}]".format(self.conference_reviewer, self.proposal_section)
6259

6360

64-
@python_2_unicode_compatible
6561
class ProposalType(AuditModel):
6662

6763
""" List of Proposal Types """
@@ -77,7 +73,6 @@ def __str__(self):
7773
return self.name
7874

7975

80-
@python_2_unicode_compatible
8176
class Proposal(TimeAuditModel):
8277

8378
""" The proposals master """
@@ -260,7 +255,6 @@ class Meta:
260255
unique_together = ("conference", "slug")
261256

262257

263-
@python_2_unicode_compatible
264258
class ProposalVote(TimeAuditModel):
265259

266260
""" User vote for a specific proposal """
@@ -290,7 +284,6 @@ def get_reviewers_only_comments(self):
290284
return self.filter(reviewer=True, vote=False)
291285

292286

293-
@python_2_unicode_compatible
294287
class ProposalSectionReviewerVoteValue(AuditModel):
295288
""" Proposal reviewer vote choices. """
296289

@@ -304,7 +297,6 @@ class Meta:
304297
ordering = ("-vote_value",)
305298

306299

307-
@python_2_unicode_compatible
308300
class ProposalSectionReviewerVote(TimeAuditModel):
309301

310302
""" Reviewer vote for a specific proposal """
@@ -331,7 +323,6 @@ class Meta:
331323

332324

333325
# FIXME: Need to move private, reviewer, vote to type
334-
@python_2_unicode_compatible
335326
class ProposalComment(TimeAuditModel):
336327

337328
""" User comments for a specific proposal """
@@ -418,7 +409,6 @@ def get_comment_type(self):
418409
return "Public"
419410

420411

421-
@python_2_unicode_compatible
422412
class ProposalCommentVote(TimeAuditModel):
423413

424414
""" User vote for a specific proposal's comment """

junction/schedule/models.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- coding: utf-8 -*-
22

33
from django.db import models
4-
from django.utils.encoding import python_2_unicode_compatible
54
from rest_framework.reverse import reverse
65

76
from junction.base.constants import ProposalReviewStatus
@@ -10,7 +9,6 @@
109
from junction.proposals.models import Proposal
1110

1211

13-
@python_2_unicode_compatible
1412
class ScheduleItemType(AuditModel):
1513
title = models.CharField(max_length=100)
1614

0 commit comments

Comments
 (0)