1👍
✅
Sorry to disappoint everyone, but after a lot of searching and trial and error, I found out the right solution was to add to all the model Classes in the backend.models
the following:
class Meta:
app_label = 'backend'
Now these models are visible in the admin interface when admin.autodiscover
is called.
0👍
You need change permissions to be able to view the app. Django doesn’t have a separate “view” permission.
- [Answer]-Django forms is not displayed via web
- [Answer]-Throwing back a URL in Django
- [Answer]-Deleting a resource only if the DELETE request is by the resource's owner in django-tastypie
- [Answer]-Angular's ng-repeat with predefined markup
- [Answer]-Connection of 3 Models with Foreign Key
0👍
Try this in admin.py:
class ClassAdmin (admin.ModelAdmin):
def formfield_for_manytomany(self, db_field, request=None, **kwargs):
if db_field.name == 'user_permissions':
kwargs['queryset'] = Permission.objects.filter(content_type__app_label="{{NAME_OF_APP}}")
return super(ClassAdmin, self).formfield_for_manytomany(db_field, request=request, **kwargs)
- [Answer]-How to send large amount of text between two views using Django
- [Answer]-Django Templates: How does it decide where to load a template?
Source:stackexchange.com