oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
425 stars 81 forks source link

Limit model instances available to CRUD View #55

Closed fjbardelli closed 5 years ago

fjbardelli commented 6 years ago

It is possible to work with a model, but not with all the data. For example, define the view as follows

class vExamen2 (CRUDView):      model = Exam.objects.filter (id = 1)

luisza commented 6 years ago

No, is it.

model is a class not instance or queryset. Because there are no sense have list view, add view if you have only one instance.

See http://django-cruds-adminlte.readthedocs.io/en/latest/usage.html#overwrite-views

oscarmlage commented 6 years ago

@fjbardelli was it helpful? Please give us some feedback to keep the issue open or close it. Thanks.

telenieko commented 5 years ago

As far as I understand the original comment, the request is for what already exists in Django views (queryset). Anyway, closing due to lack of folloup by the submitter.