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 """
@@ -263,7 +258,6 @@ class Meta:
263
258
unique_together = ("conference" , "slug" )
264
259
265
260
266
- @python_2_unicode_compatible
267
261
class ProposalVote (TimeAuditModel ):
268
262
269
263
""" User vote for a specific proposal """
@@ -293,7 +287,6 @@ def get_reviewers_only_comments(self):
293
287
return self .filter (reviewer = True , vote = False )
294
288
295
289
296
- @python_2_unicode_compatible
297
290
class ProposalSectionReviewerVoteValue (AuditModel ):
298
291
""" Proposal reviewer vote choices. """
299
292
@@ -307,7 +300,6 @@ class Meta:
307
300
ordering = ("-vote_value" ,)
308
301
309
302
310
- @python_2_unicode_compatible
311
303
class ProposalSectionReviewerVote (TimeAuditModel ):
312
304
313
305
""" Reviewer vote for a specific proposal """
@@ -334,7 +326,6 @@ class Meta:
334
326
335
327
336
328
# FIXME: Need to move private, reviewer, vote to type
337
- @python_2_unicode_compatible
338
329
class ProposalComment (TimeAuditModel ):
339
330
340
331
""" User comments for a specific proposal """
@@ -421,7 +412,6 @@ def get_comment_type(self):
421
412
return "Public"
422
413
423
414
424
- @python_2_unicode_compatible
425
415
class ProposalCommentVote (TimeAuditModel ):
426
416
427
417
""" User vote for a specific proposal's comment """
0 commit comments