Skip to content

Loading…

media_tree_filenode is missing a site-field #25

Open
erlenddalen opened this Issue · 0 comments

1 participant

@erlenddalen

A filenode object is not related to a site. This must be a design flaw, because if you have several virtual hosts running on a server, you would most likely have a separate media folder for each virtual host. But media_tree assume that all filenodes are stored in a global media folder.

This should be solved by adding a foreign key to django_site, much like django-cms do in cms_page.

@erlenddalen erlenddalen added a commit to erlenddalen/django-media-tree that referenced this issue
@erlenddalen erlenddalen Resolving issue #25. Only files uploaded in a certain site shold be s…
…electable in that site.
16fdcc7
@erlenddalen erlenddalen added a commit to erlenddalen/django-media-tree that referenced this issue
@erlenddalen erlenddalen Issue #25: Added migration for the site field. 5c55534
@erlenddalen erlenddalen added a commit to erlenddalen/django-media-tree that referenced this issue
@erlenddalen erlenddalen Issue #25: Filter on the current site.
Making sure that the image plugin use the site filter so that only
images that are added to the current site can be used.
8e8ec15
@erlenddalen erlenddalen added a commit to erlenddalen/django-media-tree that referenced this issue
@erlenddalen erlenddalen Issue #25: Only folders for the current site.
Also filter folders that has been registerred in the current site.
14daa62
@erlenddalen erlenddalen added a commit to erlenddalen/django-media-tree that referenced this issue
@erlenddalen erlenddalen Revert "Issue #25: Filter on the current site."
This reverts commit 8e8ec15.
ee83f05
@erlenddalen erlenddalen added a commit to erlenddalen/django-media-tree that referenced this issue
@erlenddalen erlenddalen Issue #25: Filter on the current site 7a40e8d
@erlenddalen erlenddalen added a commit to erlenddalen/django-media-tree that referenced this issue
@erlenddalen erlenddalen Issue #25
Also fixing the site issue for the other plugins and use limit_choice_to
to make admin pick up the limitations.
9179cfd
@erlenddalen erlenddalen added a commit to erlenddalen/django-media-tree that referenced this issue
@erlenddalen erlenddalen Issue #25
Make sure the get_current is not called when being read in imports.
2e112f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.