from django.db import models


class CounterField(models.IntegerField):
    def __init__(self, *args, **kwargs):
        kwargs['default'] = kwargs.get('default', 0)
        super(CounterField, self).__init__(*args, **kwargs)

try:
    from south.modelsinspector import add_introspection_rules
except ImportError:
    pass
else:
    add_introspection_rules([], ["^pomoji\.django_counter_field\.fields\.CounterField"])

from django.db import models


class CounterField(models.IntegerField):
    """
    CounterField wraps the standard django IntegerField. It exists primarily to allow for easy validation of
    counter fields. The default value of a counter field is 0.
    """
    def __init__(self, *args, **kwargs):
        kwargs['default'] = kwargs.get('default', 0)
        super(CounterField, self).__init__(*args, **kwargs)

try:
    from south.modelsinspector import add_introspection_rules
except ImportError:
    pass
else:
    add_introspection_rules([], ["^django_counter_field\.fields\.CounterField"])

Fix bug in introspection rule
Fix bug in introspection rule
  from django.db import models
  
  
  class CounterField(models.IntegerField):
+     """
+     CounterField wraps the standard django IntegerField. It exists primarily to allow for easy validation of
+     counter fields. The default value of a counter field is 0.
+     """
      def __init__(self, *args, **kwargs):
          kwargs['default'] = kwargs.get('default', 0)
          super(CounterField, self).__init__(*args, **kwargs)
  
  try:
      from south.modelsinspector import add_introspection_rules
  except ImportError:
      pass
  else:
-     add_introspection_rules([], ["^pomoji\.django_counter_field\.fields\.CounterField"])
+     add_introspection_rules([], ["^django_counter_field\.fields\.CounterField"])
  
Fix bug in introspection rule
## Code Before:
from django.db import models


class CounterField(models.IntegerField):
    def __init__(self, *args, **kwargs):
        kwargs['default'] = kwargs.get('default', 0)
        super(CounterField, self).__init__(*args, **kwargs)

try:
    from south.modelsinspector import add_introspection_rules
except ImportError:
    pass
else:
    add_introspection_rules([], ["^pomoji\.django_counter_field\.fields\.CounterField"])

## Instruction:
Fix bug in introspection rule
## Code After:
from django.db import models


class CounterField(models.IntegerField):
    """
    CounterField wraps the standard django IntegerField. It exists primarily to allow for easy validation of
    counter fields. The default value of a counter field is 0.
    """
    def __init__(self, *args, **kwargs):
        kwargs['default'] = kwargs.get('default', 0)
        super(CounterField, self).__init__(*args, **kwargs)

try:
    from south.modelsinspector import add_introspection_rules
except ImportError:
    pass
else:
    add_introspection_rules([], ["^django_counter_field\.fields\.CounterField"])
