Skip to content
Snippets Groups Projects
  • Konrad Mohrfeldt's avatar
    c650f609
    refactor: implement consistent pk/slug retrieval for shows · c650f609
    Konrad Mohrfeldt authored
    The show retrieve method allowed shows to be identified through the slug
    or the id. This is handy, but was restricted to the retrieve and did not
    apply to the update nor delete methods. The proper way to implement this
    kind of behaviour is through overriding get_object so that route
    identifiers are handled consistently.
    c650f609
    History
    refactor: implement consistent pk/slug retrieval for shows
    Konrad Mohrfeldt authored
    The show retrieve method allowed shows to be identified through the slug
    or the id. This is handy, but was restricted to the retrieve and did not
    apply to the update nor delete methods. The proper way to implement this
    kind of behaviour is through overriding get_object so that route
    identifiers are handled consistently.