Performing a ModelAdmin action in Django
|January 22, 2012||Posted by forumadmin under TechQns||
I’d like to be able to do something like:
# from the docs def make_published(modeladmin, request, queryset): queryset.update(status='p')
But I’m not using the Django admin site – I just need to be able to do this type of functionality elsewhere in my site.
Where should something like this be defined? In a model manager?
|Asked By – 9-bits||Read Answers|