7
7
from django .core .urlresolvers import reverse
8
8
from django .db import models
9
9
from django .template .defaultfilters import slugify
10
- from django .utils .encoding import python_2_unicode_compatible
11
10
from django_extensions .db .fields import AutoSlugField
12
11
from hashids import Hashids
13
12
from rest_framework .reverse import reverse as rf_reverse
26
25
from junction .conferences .models import Conference , ConferenceProposalReviewer
27
26
28
27
29
- @python_2_unicode_compatible
30
28
class ProposalSection (AuditModel ):
31
29
32
30
""" List of Proposal Sections"""
@@ -42,7 +40,6 @@ def __str__(self):
42
40
return self .name
43
41
44
42
45
- @python_2_unicode_compatible
46
43
class ProposalSectionReviewer (AuditModel ):
47
44
48
45
""" List of Proposal Section Reviewers"""
@@ -61,7 +58,6 @@ def __str__(self):
61
58
return "{}:[{}]" .format (self .conference_reviewer , self .proposal_section )
62
59
63
60
64
- @python_2_unicode_compatible
65
61
class ProposalType (AuditModel ):
66
62
67
63
""" List of Proposal Types """
@@ -77,7 +73,6 @@ def __str__(self):
77
73
return self .name
78
74
79
75
80
- @python_2_unicode_compatible
81
76
class Proposal (TimeAuditModel ):
82
77
83
78
""" The proposals master """
@@ -260,7 +255,6 @@ class Meta:
260
255
unique_together = ("conference" , "slug" )
261
256
262
257
263
- @python_2_unicode_compatible
264
258
class ProposalVote (TimeAuditModel ):
265
259
266
260
""" User vote for a specific proposal """
@@ -290,7 +284,6 @@ def get_reviewers_only_comments(self):
290
284
return self .filter (reviewer = True , vote = False )
291
285
292
286
293
- @python_2_unicode_compatible
294
287
class ProposalSectionReviewerVoteValue (AuditModel ):
295
288
""" Proposal reviewer vote choices. """
296
289
@@ -304,7 +297,6 @@ class Meta:
304
297
ordering = ("-vote_value" ,)
305
298
306
299
307
- @python_2_unicode_compatible
308
300
class ProposalSectionReviewerVote (TimeAuditModel ):
309
301
310
302
""" Reviewer vote for a specific proposal """
@@ -331,7 +323,6 @@ class Meta:
331
323
332
324
333
325
# FIXME: Need to move private, reviewer, vote to type
334
- @python_2_unicode_compatible
335
326
class ProposalComment (TimeAuditModel ):
336
327
337
328
""" User comments for a specific proposal """
@@ -418,7 +409,6 @@ def get_comment_type(self):
418
409
return "Public"
419
410
420
411
421
- @python_2_unicode_compatible
422
412
class ProposalCommentVote (TimeAuditModel ):
423
413
424
414
""" User vote for a specific proposal's comment """
0 commit comments