mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
Various improvements for flatpages
This commit is contained in:
@@ -249,7 +249,7 @@ class GetFlatpage(View):
|
||||
def get(self, request, flatpage):
|
||||
try:
|
||||
flatpage = Flatpage.objects.get(
|
||||
Q(Q(path=flatpage) & Q(draft=False))
|
||||
Q(Q(path=flatpage) & Q(published=True))
|
||||
)
|
||||
except ObjectDoesNotExist:
|
||||
raise Http404
|
||||
|
Reference in New Issue
Block a user