Skip to content

Commit

Permalink
postgres search and search form
Browse files Browse the repository at this point in the history
  • Loading branch information
abubakerKhaled committed Oct 30, 2024
1 parent 4cd348b commit b801255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion posts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ class EmailPostForm(forms.Form):
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ['name', 'email', 'body']
fields = ['name', 'email', 'body']

class SearchForm(forms.Form):
query = forms.CharField()
1 change: 1 addition & 0 deletions scribly/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"django.contrib.sites",
"django.contrib.sitemaps",
"django.contrib.staticfiles",
"django.contrib.postgres",
"taggit",
"posts.apps.PostsConfig",
"users.apps.UsersConfig",
Expand Down

0 comments on commit b801255

Please sign in to comment.