Permalink
Browse files

- updated README with better way of importing

  • Loading branch information...
1 parent 52affee commit 4e2aee4da851bbcab810ec85175222e8af03ead7 @camillol committed Feb 4, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.rst
View
@@ -22,15 +22,15 @@ To use the shared memory model you simply need to inherit from it (instead of mo
For example, if you want to simply mark all of your models as a SharedMemoryModel, you might as well just import it as models.
::
- import idmapper as models
+ from idmapper import models
class MyModel(models.SharedMemoryModel):
name = models.CharField(...)
-Because the system is isolated, you may mix and match SharedMemoryModel's with regular Model's.
+Because the system is isolated, you may mix and match SharedMemoryModels with regular Models. The module idmapper.models imports everything from django.db.models and only adds SharedMemoryModel, so you can simply replace your import of models from django.db.
::
- import idmapper as models
+ from idmapper import models
class MyModel(models.SharedMemoryModel):
name = models.CharField(...)

0 comments on commit 4e2aee4

Please sign in to comment.