Skip to content

Commit

Permalink
Merge pull request #41 from Gray-Advantage/sergey
Browse files Browse the repository at this point in the history
Test Datanar 1.7.2
  • Loading branch information
Gray-Advantage authored Jun 21, 2024
2 parents 5b41a4e + d0169e4 commit 3725344
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion datanar/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ def create(self, request, *args, **kwargs):
if form.is_valid():
serializer = RedirectCreateSerializer(data=post_data)
serializer.is_valid(raise_exception=True)
serializer.save(**{"short_link": form.cleaned_data["short_link"]})
serializer.save(
**{
"short_link": form.cleaned_data["short_link"],
"user": self._get_user(request),
},
)

return Response(
serializer.data,
Expand Down
2 changes: 1 addition & 1 deletion datanar/datanar/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

BASE_DIR = Path(__file__).resolve().parent.parent

VERSION = "1.7.1"
VERSION = "1.7.2"

SECRET_KEY = config(
"DJANGO_SECRET_KEY",
Expand Down

0 comments on commit 3725344

Please sign in to comment.