Skip to content

Commit

Permalink
Merge pull request #764 from LibraryOfCongress/management-command-bugfix
Browse files Browse the repository at this point in the history
Fix bug in initial site config management command
  • Loading branch information
rstorey authored Jan 15, 2019
2 parents 66f07e5 + 53a3dec commit 7881be0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def handle(self, *, admin_username, admin_email, site_name, site_domain, **optio
)

if site_domain != "example.com":
updated = Site.objects.filter.update(name=site_name, domain=site_domain)
updated = Site.objects.update(name=site_name, domain=site_domain)
if updated:
self.stdout.write(
f"Configured site with name {site_name} and domain {site_domain}"
Expand Down

0 comments on commit 7881be0

Please sign in to comment.