Re: Issues saving hex format data to binaryfield

2017-02-22 Thread Brian O'Connell
The database is pre-existing and I'm creating a Django web interface for it. This object holds the 8-digit hex output of the unique mfr identifier of the MiFare rfids. There are remote terminals that interact with database through psycopg2 and have no issue with that field. I could change the

Re: Issues saving hex format data to binaryfield

2017-02-22 Thread Brian O'Connell
I have the model set up as a binaryfield. The problem is I have no idea how to save the information to it. I can retrieve information from it easy enough but if I try and enter in new information, saved in the same format as that it returns Here's what I have in model.py class Users(models.Mod

Issues saving hex format data to binaryfield

2017-02-22 Thread Brian O'Connell
I have a project where I am saving RFID information (which comes in as hex strings) to a bytea object in my postgres database. I can retrieve this information without issue. I am struggling to overwrite that object with new data (For when someone loses their rfid and needs to replace it). I hav