Skip to content

Conversation

@ovangle
Copy link
Contributor

@ovangle ovangle commented Apr 2, 2015

To allow serializations to control the representation format of a
UUID value

@jpadilla
Copy link
Contributor

jpadilla commented Apr 4, 2015

LGTM

@xordoquy xordoquy added this to the 3.1.2 Release milestone Apr 8, 2015
@xordoquy
Copy link
Contributor

xordoquy commented Apr 8, 2015

Seconded here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks truncated.

To allow serializations to control the representation format of a
UUID value
@gio82
Copy link

gio82 commented Apr 17, 2015

+1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we always going to be handling the int case correctly here? Any cases where that can just be an int, rather than a UUID instance?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure what potential problem you foresee here.

Which int case? The case where format is 'int', or the case where an int has somehow been passed to to_representation? None of the other fields check too rigorously for an incorrect type being passed to to_representation.

@lovelydinosaur
Copy link
Contributor

One query worth having a quikc think about but otherwise reckon I'm happy for this to go in.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have examples here?

@lovelydinosaur
Copy link
Contributor

Okay one last comment regarding the docs. Otherwise good after that! :)

@jpadilla
Copy link
Contributor

jpadilla commented Jun 2, 2015

Closing this in favor of #3000.

@jpadilla jpadilla closed this Jun 2, 2015
@xordoquy xordoquy changed the title Add 'format' argument to UUIDField Add format argument to UUIDField Jun 3, 2015
@xordoquy
Copy link
Contributor

xordoquy commented Jun 3, 2015

@ovangle thanks for the PR.

@ovangle
Copy link
Contributor Author

ovangle commented Jun 3, 2015

That's OK. I seem to have missed a couple of emails telling me to follow up on it. Sorry about that.

@xordoquy
Copy link
Contributor

xordoquy commented Jun 3, 2015

@ovangle no problem at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants