djangosnippets.org: Latest snippets posted by powerfoxhttp://djangosnippets.org/users/powerfox/2009-02-02T13:59:53.675519-06:00powerfoxDatabase file storage
2009-02-02T13:59:53.675519-06:00powerfoxhttp://djangosnippets.org/snippets/1305/<p>Class DatabaseStorage can be used with either FileField or ImageField. It can be used to map filenames to database blobs: so you have to use it with a <strong>special additional table created manually</strong>. The table should contain: <br />
<em>a pk-column for filenames (I think it's better to use the same …</em></p>
Freely redistributableManyToManyField no syncdb
2009-01-22T15:21:48.638164-06:00powerfoxhttp://djangosnippets.org/snippets/1295/<p><strong>Sumary</strong></p>
<p>M2M relation without creating table.
Normally you should specify m2m only in <em>one</em> model, thus widgets for many-to-many relations will be displayed inline on whichever model contains the actual reference to the ManyToManyField. But if you want to be able to have widgets displayed on both form you need …</p>
Freely redistributable