def get_readonly_fields(self, request, obj=None):
    'Hide the origin field from editing, but not creation.'
    return (('origin',) if obj else ())
Hide the origin field from editing, but not creation.
def get_readonly_fields(self, request, obj=None):
    
    return (('origin',) if obj else ())