carltongibson / neapolitan

Quick CRUD views for Django
https://noumenal.es/neapolitan/
MIT License
413 stars 30 forks source link

Add support for str and uuid PK fields in models #50

Closed phoikoi closed 1 week ago

phoikoi commented 1 week ago

Currently neapolitan only supports models which have an integer primary key. This patch adds support for string and UUID PKs as well (CharField, TextField, and UUIDField respectively.)

phoikoi commented 1 week ago

Sorry, I hadn't realized the changes after 26-April made this change unnecessary. D'oh! :)

carltongibson commented 1 week ago

Hey @phoikoi — no stress. Glad the new API is useful for you.