gregmuellegger/django-autofixture

Support for django-filebrowser

ad-m opened this issue · 2 comments

ad-m commented

I suggest add support for django-filebrowser fields. It should detect accepted extensions, connect it to supported extensions of placeholer and return right fixtures.

Hi, I think I don't want to support any external apps in the autofixture core. However it would make sense to add some generic API to add generators for a particular kind of field, so to say:

import autofixture

autofixture.register_generator(
    FileBrowserField,
    FileBrowserFileGenerator)

But that API does not exist and I think I won't get around soonish to implement it. But if you are interested in that problem, I would be happy to review a pull-request in that regard :)

Closing this due to inactivity. Feel free to open up a PR with any ideas about a generic API to handle that.