Changes between Version 6 and Version 7 of DataModelPitfalls


Ignore:
Timestamp:
08/11/2005 10:13:46 PM (10 years ago)
Author:
jacob
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataModelPitfalls

    v6 v7  
    6464}}}
    6565
     66Or, you can simply import the modules needed in the function itself:
     67
     68{{{
     69class Something(meta.Model):
     70    ...
     71
     72    def func(self):
     73        import md5
     74        md5.new(...)
     75}}}
     76
    6677Read the article this is based on in full [http://www.deadlybloodyserious.com/categories/django/2005/08/07.html#P85 over here].
    6778
Back to Top