These are chat archives for django/django
corsheadersin you django settings
lookup_field - The model field that should be used to for performing object lookup of individual model instances. Defaults to 'pk'. Note that when using hyperlinked APIs you'll need to ensure that both the API views and the serializer classes set the lookup fields if you need to use a custom value.
one problem fixed... on to the next one.. getting an error
Exception Type: AssertionError at /api/phones/2942/ Exception Value: Expected view PhoneBillingDetailAPIView to be called with a URL keyword argument named "store.store_number". Fix your URL conf, or set the `.lookup_field` attribute on the view correctly.
don't know how to use link the
Usermodel to differentiate normal user and agent user