Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing id from user table #13

Closed
dhararon opened this issue Oct 6, 2019 · 3 comments · Fixed by #14
Closed

Missing id from user table #13

dhararon opened this issue Oct 6, 2019 · 3 comments · Fixed by #14

Comments

@dhararon
Copy link

dhararon commented Oct 6, 2019

Hi,

When you use a different name for primary key the app crash, example

uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)

You need to get the primary key not the id in this line

SmileyChris:

“id” is just the default primary key field, whereas “pk” is an alias to the field which is defined as the primary key.

@jrobichaud
Copy link
Owner

Ill change it, thanks for pointing that out.

@jrobichaud
Copy link
Owner

1.3.3 will be out in a few minutes with the fix.

@jrobichaud
Copy link
Owner

@dhararon 1.3.3 is out, it took longer since I forgot to tag the commit. 🤦‍♂

If this does not fix your issue please re-open the issue.

Relating your issue, for the moment it is not possible to customize the keys in metadata.

It will still logged as user_id and not as user_uuid. If it is a problem for you please open a different issue.

I was considering adding the possibility of customizing all the keys. Ex: event names and metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants