carltongibson / neapolitan

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

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

Closed phoikoi closed 5 months ago

phoikoi commented 5 months 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 5 months ago

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

carltongibson commented 5 months ago

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