Rafał Pitoń 11 years ago
parent
commit
a8aa8c8c00
2 changed files with 7 additions and 7 deletions
  1. 2 2
      misago/users/forms/admin.py
  2. 5 5
      misago/users/models.py

+ 2 - 2
misago/users/forms/admin.py

@@ -368,10 +368,10 @@ class WarningLevelForm(forms.ModelForm):
         help_text=_("Enter number of minutes since this warning level was "
         help_text=_("Enter number of minutes since this warning level was "
                     "imposed on member until it's reduced, or 0 to make "
                     "imposed on member until it's reduced, or 0 to make "
                     "this warning level permanent."))
                     "this warning level permanent."))
-    restricts_posting_replies = forms.TypedChoicefield(
+    restricts_posting_replies = forms.TypedChoiceField(
         label=_("Restrictions on posting replies"),
         label=_("Restrictions on posting replies"),
         coerce=int, choices=RESTRICTIONS_CHOICES)
         coerce=int, choices=RESTRICTIONS_CHOICES)
-    restricts_posting_threads = forms.TypedChoicefield(
+    restricts_posting_threads = forms.TypedChoiceField(
         label=_("Restrictions on posting threads"),
         label=_("Restrictions on posting threads"),
         coerce=int, choices=RESTRICTIONS_CHOICES)
         coerce=int, choices=RESTRICTIONS_CHOICES)
 
 

+ 5 - 5
misago/users/models.py

@@ -383,9 +383,9 @@ RESTRICT_DISALLOW = 2
 
 
 
 
 RESTRICTIONS_CHOICES = (
 RESTRICTIONS_CHOICES = (
-    (WarnLevel.RESTRICT_NO, _("No restrictions")),
-    (WarnLevel.RESTRICT_MODERATOR_REVIEW, _("Review by moderator")),
-    (WarnLevel.RESTRICT_DISALLOW, _("Disallowed")),
+    (RESTRICT_NO, _("No restrictions")),
+    (RESTRICT_MODERATOR_REVIEW, _("Review by moderator")),
+    (RESTRICT_DISALLOW, _("Disallowed")),
 )
 )
 
 
 
 
@@ -400,9 +400,9 @@ class WarningLevel(models.Model):
         default=RESTRICT_NO)
         default=RESTRICT_NO)
 
 
     def save(self, *args, **kwargs):
     def save(self, *args, **kwargs):
-        super(WarnLevel, self).save(*args, **kwargs)
+        super(WarningLevel, self).save(*args, **kwargs)
         cache.delete('warning_levels')
         cache.delete('warning_levels')
 
 
     def delete(self, *args, **kwargs):
     def delete(self, *args, **kwargs):
-        super(WarnLevel, self).delete(*args, **kwargs)
+        super(WarningLevel, self).delete(*args, **kwargs)
         cache.delete('warning_levels')
         cache.delete('warning_levels')