From 5232b186dc44fc053adfcbd3860a4b33da399232 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 28 Jun 2014 12:22:29 -0500 Subject: Remove dependency on South Signed-off-by: Dan McGee --- README.md | 1 - devel/fields.py | 2 -- main/fields.py | 2 -- mirrors/fields.py | 4 ---- requirements.txt | 1 - requirements_prod.txt | 1 - settings.py | 1 - 7 files changed, 12 deletions(-) diff --git a/README.md b/README.md index beeb7f99..3e48ca8c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ packages, you will probably want the following: - django - python2-psycopg2 - python2-markdown -- python2-south - python2-memcached # Testing Installation diff --git a/devel/fields.py b/devel/fields.py index 606ca63c..dd22a92e 100644 --- a/devel/fields.py +++ b/devel/fields.py @@ -3,8 +3,6 @@ class PGPKeyField(models.CharField): - _south_introspects = True - def __init__(self, *args, **kwargs): super(PGPKeyField, self).__init__(*args, **kwargs) self.validators.append(RegexValidator(r'^[0-9A-F]{40}$', diff --git a/main/fields.py b/main/fields.py index 2d5703ef..53494772 100644 --- a/main/fields.py +++ b/main/fields.py @@ -2,8 +2,6 @@ class PositiveBigIntegerField(models.BigIntegerField): - _south_introspects = True - def get_internal_type(self): return "BigIntegerField" diff --git a/mirrors/fields.py b/mirrors/fields.py index 206c9d7d..e8963edf 100644 --- a/mirrors/fields.py +++ b/mirrors/fields.py @@ -4,7 +4,6 @@ from django.core import validators from django.core.exceptions import ValidationError from django.db import models -from south.modelsinspector import add_introspection_rules class IPNetworkFormField(forms.Field): @@ -44,6 +43,3 @@ def formfield(self, **kwargs): defaults = {'form_class': IPNetworkFormField} defaults.update(kwargs) return super(IPNetworkField, self).formfield(**defaults) - - -add_introspection_rules([], ["^mirrors\.fields\.IPNetworkField"]) diff --git a/requirements.txt b/requirements.txt index 1888f8a1..866b4f52 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,6 @@ Django==1.6.6 IPy==0.81 Markdown==2.4.1 -South==1.0 bencode==1.0 jsmin==2.0.11 pgpdump==1.5 diff --git a/requirements_prod.txt b/requirements_prod.txt index c6b06897..d98a7daa 100644 --- a/requirements_prod.txt +++ b/requirements_prod.txt @@ -3,7 +3,6 @@ Django==1.6.6 IPy==0.81 Markdown==2.4.1 -South==1.0 bencode==1.0 jsmin==2.0.11 pgpdump==1.5 diff --git a/settings.py b/settings.py index 2e3cf08b..368dcb73 100644 --- a/settings.py +++ b/settings.py @@ -114,7 +114,6 @@ 'django.contrib.sitemaps', 'django.contrib.admin', 'django.contrib.staticfiles', - 'south', 'django_countries', 'main', -- cgit v1.2.3-54-g00ecf