On Wednesday 22 February 2017 14:47:55 Brian O'Connell wrote: > def set_rfid(self,rfid_new): > print self.rfid # print the existing object data > try: > self.rfid = bytearray(rfid_new) > print self.rfid > except Exception as ex: > template = "An exception of type {0} occured. > Arguments:\n{1!r}" message = template.format(type(ex).__name__, > ex.args) print message > > It doesn't raise an exception but it also doesn't save it into the > field.
Because this is set_rfid not save(). If you call save() after calling set_rfid, the value isn't saved? -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/10747751.VrTcuDJZbZ%40devstation. For more options, visit https://groups.google.com/d/optout.