admin: fix provider table breaking
This commit is contained in:
parent
10bb06cc7e
commit
1ab445ab8e
|
@ -36,12 +36,12 @@
|
||||||
<td>{{ provider.name }}</td>
|
<td>{{ provider.name }}</td>
|
||||||
<td>{{ provider|fieldtype }}</td>
|
<td>{{ provider|fieldtype }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="btn btn-default btn-sm" href="{% url 'passbook_admin:provider-update' pk=provider.uuid %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a>
|
<a class="btn btn-default btn-sm" href="{% url 'passbook_admin:provider-update' pk=provider.pk %}?back={{ request.get_full_path }}">{% trans 'Edit' %}</a>
|
||||||
<a class="btn btn-default btn-sm" href="{% url 'passbook_admin:provider-delete' pk=provider.uuid %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
|
<a class="btn btn-default btn-sm" href="{% url 'passbook_admin:provider-delete' pk=provider.pk %}?back={{ request.get_full_path }}">{% trans 'Delete' %}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -30,9 +30,9 @@ urlpatterns = [
|
||||||
path('providers/', providers.ProviderListView.as_view(), name='providers'),
|
path('providers/', providers.ProviderListView.as_view(), name='providers'),
|
||||||
path('providers/create/',
|
path('providers/create/',
|
||||||
providers.ProviderCreateView.as_view(), name='provider-create'),
|
providers.ProviderCreateView.as_view(), name='provider-create'),
|
||||||
path('providers/<uuid:pk>/update/',
|
path('providers/<int:pk>/update/',
|
||||||
providers.ProviderUpdateView.as_view(), name='provider-update'),
|
providers.ProviderUpdateView.as_view(), name='provider-update'),
|
||||||
path('providers/<uuid:pk>/delete/',
|
path('providers/<int:pk>/delete/',
|
||||||
providers.ProviderDeleteView.as_view(), name='provider-delete'),
|
providers.ProviderDeleteView.as_view(), name='provider-delete'),
|
||||||
# path('api/v1/', include('passbook.admin.api.v1.urls'))
|
# path('api/v1/', include('passbook.admin.api.v1.urls'))
|
||||||
]
|
]
|
||||||
|
|
Reference in New Issue