1. Owen Nelson
  2. django-ipyfield


Owen Nelson  committed 4fcb821

no no - keep the actual field code and connections to django out of the init.

  • Participants
  • Parent commits 63c7b06
  • Branches default

Comments (0)

Files changed (3)


View file
  • Ignore whitespace
 In your models, do something like the fallowing: ::
     from django.db import models
-    from ipyfield import IPyField
+    from ipyfield.models import IPyField
     class MyModel(models.Model):

File ipyfield/__init__.py

View file
  • Ignore whitespace
 __version__ = '0.1'
-from ipyfield.models import IPyField

File ipyfield/tests.py

View file
  • Ignore whitespace
 from django.test import TestCase
 from django.db.models import Model
 from django.db import IntegrityError
-from ipyfield import IPyField
+from ipyfield.models import IPyField
 from IPy import IP