Skip to content

Commit 7900160

Browse files
committed
Fix typo error.
See ietf-tools#913 - Legacy-Id: 5156
1 parent 5aad2aa commit 7900160

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

ietf/nomcom/fields.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
from ietf.utils.pipe import pipe
66

77

8-
class EncriptedException(Exception):
8+
class EncryptedException(Exception):
99
pass
1010

1111

12-
class EncriptedTextField(models.TextField):
12+
class EncryptedTextField(models.TextField):
1313
def pre_save(self, instance, add):
1414
if add:
1515
comments = getattr(instance, 'comments')
@@ -26,6 +26,6 @@ def pre_save(self, instance, add):
2626
instance.comments = out
2727
return out
2828
else:
29-
raise EncriptedException(error)
29+
raise EncryptedException(error)
3030
else:
3131
return instance.comments

ietf/nomcom/migrations/0001_initial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def forwards(self, orm):
7878
('author', self.gf('django.db.models.fields.EmailField')(max_length=75)),
7979
('position', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['nomcom.Position'])),
8080
('nominee', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['nomcom.Nominee'])),
81-
('comments', self.gf('ietf.nomcom.fields.EncriptedTextField')()),
81+
('comments', self.gf('ietf.nomcom.fields.EncryptedTextField')()),
8282
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['name.FeedbackType'])),
8383
('time', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
8484
))
@@ -328,7 +328,7 @@ def backwards(self, orm):
328328
'nomcom.feedback': {
329329
'Meta': {'object_name': 'Feedback'},
330330
'author': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
331-
'comments': ('ietf.nomcom.fields.EncriptedTextField', [], {}),
331+
'comments': ('ietf.nomcom.fields.EncryptedTextField', [], {}),
332332
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
333333
'nominee': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['nomcom.Nominee']"}),
334334
'position': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['nomcom.Position']"}),

ietf/nomcom/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from south.modelsinspector import add_introspection_rules
88

9-
from ietf.nomcom.fields import EncriptedTextField
9+
from ietf.nomcom.fields import EncryptedTextField
1010
from ietf.person.models import Email
1111
from ietf.group.models import Group
1212
from ietf.name.models import NomineePositionState, FeedbackType
@@ -130,7 +130,7 @@ class Feedback(models.Model):
130130
author = models.EmailField(verbose_name='Author', blank=True)
131131
position = models.ForeignKey('Position')
132132
nominee = models.ForeignKey('Nominee')
133-
comments = EncriptedTextField(verbose_name='Comments')
133+
comments = EncryptedTextField(verbose_name='Comments')
134134
type = models.ForeignKey(FeedbackType)
135135
time = models.DateTimeField(auto_now_add=True)
136136

@@ -139,4 +139,4 @@ def __unicode__(self):
139139

140140
# ----- adding south rules to help introspection -----
141141

142-
add_introspection_rules([], ["^ietf\.nomcom\.fields\.EncriptedTextField"])
142+
add_introspection_rules([], ["^ietf\.nomcom\.fields\.EncryptedTextField"])

0 commit comments

Comments
 (0)