Category: python

django tips

What’s the difference between Objects.filter vs. Objects.get Objects.filter returns what’s defined in publish method and Objects.get returns instance In redirect to a view with a foreign key pk = instance.foreignkey.pk

Read More →