Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display dependencies in editor #183

Merged
merged 1 commit into from Nov 9, 2020
Merged

Display dependencies in editor #183

merged 1 commit into from Nov 9, 2020

Conversation

kaedroho
Copy link
Contributor

@kaedroho kaedroho commented Sep 7, 2020

No description provided.

return {
'title': str(instance),
'isLive': True,
'editUrl': reverse('wagtailsnippets:edit', args=[instance._meta.app_label, instance._meta.model_name, quote(instance.id)]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the model isnt registered as a snippet? Like if someone goes through the Django Admin, or through the Wagtail ModelAdmin?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't support django/modeladmin right now because it's really hard to tell if a model has been registered with either of those interfaces and what the user permissions are.

I think we should add a sort of "Model registry" into Wagtail, which we can query for this information (might be useful for API and generic choosers too).

@kaedroho
Copy link
Contributor Author

kaedroho commented Nov 9, 2020

Thanks!

@kaedroho kaedroho deleted the dependencies branch November 9, 2020 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants