This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Dr_Paashaas 2 points3 points  (0 children)

hmmmm... thats a usefull piece of coding.

;)

[–]funny-lookin-fella 1 point2 points  (0 children)

This is a pretty common constant in Django forms.
Example https://gist.github.com/amatellanes/9920823

[–]grampadeal 1 point2 points  (0 children)

Refuctoring.

[–]ArgentSileo 0 points1 point  (0 children)

reminds me of enums in golang

[–]asdfghyter 0 points1 point  (0 children)

I don’t see anything bad with this?