Django CMS 3.11.10 Documentation
render_model_block template tag: Third party packages such as djangocms-text use this feature to allow inline editing of single fields in the frontend. {% block content %} {% render_model instance "attribute" Advanced Inline Admin If you want to have the foreign key relation as a inline admin, you can create an admin.StackedInline class and put it in the Plugin to “inlines”. Then you can use the inline admin form follows is for your plugins’ output templates. Inline JavaScrip code django CMS does not enforce a specific way to include JavaScript code in your plugins. Inline JavaScript code is a potential security risk0 码力 | 493 页 | 1.44 MB | 6 月前0.03Django 2.2.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects; you just need to change the ChoiceInline declaration to read: polls/admin.py class TabularInline): using = 'other' def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super().get_queryset(request).using(self.using) On the first site, the Author and Publisher objects are exposed; Publisher objects have a tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 4.2.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects. To use it, change the ChoiceInline declaration to read: polls/admin.py class ChoiceInline(admin TabularInline): using = "other" def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super().get_queryset(request).using(self.using) On the first site, the Author and Publisher objects are exposed; Publisher objects have a tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 3305 页 | 3.16 MB | 1 年前3Django 2.1.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects; you just need to change the ChoiceInline declaration to read: polls/admin.py class TabularInline): using = 'other' def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super().get_queryset(request).using(self.using) On the first site, the Author and Publisher objects are exposed; Publisher objects have a tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 2790 页 | 2.71 MB | 1 年前3Django 4.1.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects. To use it, change the ChoiceInline declaration to read: polls/admin.py class ChoiceInline(admin TabularInline): using = 'other' def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super().get_queryset(request).using(self.using) On the first site, the Author and Publisher objects are exposed; Publisher objects have a tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 3240 页 | 3.13 MB | 1 年前3Django 2.1.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects; you just need to change the ChoiceInline declaration to read: 2.9. Writing your min.TabularInline): using = 'other' def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super().get_queryset(request).using(self.using) def for On the first site, the Author and Publisher objects are exposed; Publisher objects have a tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 1910 页 | 6.49 MB | 1 年前3Django 1.8.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects; you just need to change the ChoiceInline declaration to read: polls/admin.py class TabularInline): using = 'other' def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super(MultiDBTabularInline, self).get_queryset(request) On the first site, the Author and Publisher objects are exposed; Publisher objects have an tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 2454 页 | 2.85 MB | 1 年前3Django 4.0.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects. To use it, change the ChoiceInline declaration to read: polls/admin.py class ChoiceInline(admin TabularInline): using = 'other' def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super().get_queryset(request).using(self.using) On the first site, the Author and Publisher objects are exposed; Publisher objects have a tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 3184 页 | 3.14 MB | 1 年前3Django 1.8.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects; you just need to change the ChoiceInline declaration to read: polls/admin.py class min.TabularInline): using = 'other' def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super(MultiDBTabularInline, self).get_queryset(request).using(self On the first site, the Author and Publisher objects are exposed; Publisher objects have an tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 1685 页 | 6.01 MB | 1 年前3Django 4.0.x Documentation
fields for entering related Choice objects. For that reason, Django offers a tabular way of displaying inline related objects. To use it, change the ChoiceInline declaration to read: 62 Chapter 2. Getting started min.TabularInline): using = 'other' def get_queryset(self, request): # Tell Django to look for inline objects on the 'other' database. return super().get_queryset(request).using(self.using) def for On the first site, the Author and Publisher objects are exposed; Publisher objects have a tabular inline showing books published by that publisher. The second site exposes just publishers, without the inlines0 码力 | 2248 页 | 7.90 MB | 1 年前3
共 77 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8