Skip to content

Instantly share code, notes, and snippets.

View kkoci's full-sized avatar
🎯
Focusing

kristian koci kkoci

🎯
Focusing
  • Feeltech LTD
  • London
  • 04:09 (UTC -12:00)
View GitHub Profile
# list_detail.object_list replacement with all the things I need
def object_list(request, queryset, extra_context=None,
template_name='', paginate_by=None):
class ObjectList(ListView):
def post(self, request, *args, **kwargs):
return self.get(request, *args, **kwargs)
def get_context_data(self, **kwargs):
c = super(ObjectList, self).get_context_data(**kwargs)
@luetkemj
luetkemj / wp-query-ref.php
Last active February 3, 2025 10:58
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/